jon.recoil.org

Module Safe.DLSSource

Like DLS, but uses modes to enforce properties necessary for data-race freedom.

Type of a DLS key

Sourceval new_key : ?split_from_parent:('a -> unit -> 'a) @ portable -> (unit -> 'a) @ portable -> 'a Stdlib.Domain.Safe.DLS.key

Like DLS.new_key, but safe to use in the presence of multiple domains.

Sourceval get : 'a. 'a Stdlib.Domain.Safe.DLS.key -> 'a @ contended

Like DLS.get, but safe to use in the presence of multiple domains.

Sourceval set : 'a. 'a Stdlib.Domain.Safe.DLS.key -> 'a @ portable -> unit

Like DLS.set, but safe to use in the presence of multiple domains.