package riot
An actor-model multi-core scheduler for OCaml 5
Install
Dune Dependency
Authors
Maintainers
Sources
riot-0.0.5.tbz
sha256=01b7b82ccc656b12b7315960d9df17eb4682b8f1af68e9fee33171fee1f9cf88
sha512=d8831d8a75fe43a7e8d16d2c0bb7d27f6d975133e17c5dd89ef7e575039c59d27c1ab74fbadcca81ddfbc0c74d1e46c35baba35ef825b36ac6c4e49d7a41d0c2
doc/src/riot.core/proc_table.ml.html
Source file proc_table.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
type t = { processes : (Pid.t, Process.t) Hashtbl.t; lock : Mutex.t } let create () = { lock = Mutex.create (); processes = Hashtbl.create 16_000 } let get t pid = Hashtbl.find_opt t.processes pid exception Reregistering_process of Process.t let register_process t (proc : Process.t) = Mutex.lock t.lock; let pid = Process.pid proc in if Hashtbl.mem t.processes pid then raise (Reregistering_process proc) else Hashtbl.add t.processes pid proc; Mutex.unlock t.lock let processes t = Hashtbl.to_seq t.processes
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>