Module Qcow_locks.Read
val with_lock : ?client:Client.t -> t -> Qcow_types.Cluster.t -> (unit -> 'a Lwt.t) -> 'a Lwt.twith_lock t fexecutesf ()with the lock held for reading
val with_locks : ?client:Client.t -> t -> first:Qcow_types.Cluster.t -> last:Qcow_types.Cluster.t -> (unit -> 'a Lwt.t) -> 'a Lwt.twith_locks t ~first ~last fexecutesf ()with all clusters in the intervalfirst .. lastinclusive locked for reading.
val lock : ?client:Client.t -> t -> Qcow_types.Cluster.t -> lock Lwt.tlock t clusteracquire a non-exclusive read lock oncluster. The resulting lock must be released by callingunlock