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