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/scheduler_uid.ml.html
Source file scheduler_uid.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
type t = int let __current__ = Atomic.make 0 let rec next () = let last = Atomic.get __current__ in let current = Int.succ last in if Atomic.compare_and_set __current__ last current then last else next () let equal a b = Int.equal a b let pp ppf t = Format.fprintf ppf "%02d" t let to_int t = t let reset () = Log.debug (fun f -> f "Resetting Scheduler Uids"); Atomic.set __current__ 0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>