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/pid.ml.html
Source file pid.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
type t = { _id : int64 } [@@unboxed] let pp ppf pid = Format.fprintf ppf "<0.%s.0>" (Int64.to_string pid._id) let make _id = { _id } let zero : t = make 0L let __current__ = Atomic.make 1L let rec next () = let last = Atomic.get __current__ in let current = last |> Int64.succ in if Atomic.compare_and_set __current__ last current then make last else next () let equal a b = Int64.equal a._id b._id let compare a b = Int64.compare a._id b._id let hash t = Int64.hash t._id let reset () = Log.debug (fun f -> f "Resetting Process Ids"); Atomic.set __current__ 1L
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>