Module Mutex.Make

Mutex manager

Parameters

module IO : S.IO
module Client : S.Client with module IO = IO

Signature

module IO = IO
module Client = Client
exception Error of string
val acquire : Client.connection -> ?atime:float -> ?ltime:int -> string -> string -> unit IO.t
val release : Client.connection -> string -> string -> unit IO.t
val with_mutex : Client.connection -> ?atime:float -> ?ltime:int -> string -> (unit -> 'a IO.t) -> 'a IO.t