Module Memprof_limits.TokenSource

A flag that can be set atomically, and never unset.

All the functions below are thread-safe.

Sourcetype t
Sourceval create : unit -> t

Create a token, initially not set.

Sourceval set : t -> unit

Set a token.

Sourceval is_set : t -> bool

Returns whether set has been called at least once on a given token.