package stdcompat

  1. Overview
  2. Docs
type 'a t = 'a ref
val make : 'a -> 'a ref
val get : 'a ref -> 'a
val set : 'a ref -> 'a -> unit
val exchange : 'a ref -> 'a -> 'a
val compare_and_set : 'a ref -> 'a -> 'a -> bool
val fetch_and_add : int ref -> int -> int
val incr : int ref -> unit
val decr : int ref -> unit
OCaml

Innovation. Community. Security.