package stdcompat

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Stdcompat.Atomic

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