Module Qcow_locks.Write
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 writing
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 writing.
val try_lock : ?client:Client.t -> t -> Qcow_types.Cluster.t -> lock optiontry_lock ?client t clusterreturns a write lock onclusterif it can be done without blocking, or returns None.