package riot
An actor-model multi-core scheduler for OCaml 5
Install
Dune Dependency
Authors
Maintainers
Sources
riot-0.0.4.tbz
sha256=bd196369f74bbc42f23d262030d5fa04c03f5f00c46bf944f0dcbc193745976f
sha512=f1ca69e05b57e83a1bd173efe51b745d331355a83381e6068743a7626e45dcf515cdd8947180051bddfe9f5727c2732aa0f01a093b04cf33fa4081d32f24fd65
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)"
>