package qcow
-
qcow
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A lock which permits multiple concurrent threads to acquire it for reading but demands exclusivity for writing
val make : unit -> t
Create a RW lock
val with_read_lock : t -> (unit -> 'a Lwt.t) -> 'a Lwt.t
with_read_lock t f
executes f ()
with the lock held for reading
val with_write_lock : t -> (unit -> 'a Lwt.t) -> 'a Lwt.t
with_write_lock t f
executes f ()
with the lock held for writing