package qcow-types

  1. Overview
  2. Docs
Minimal set of dependencies for qcow-stream, shared with qcow

Install

dune-project
 Dependency

Authors

Maintainers

Sources

qcow-0.15.0.tbz
sha256=da9c7d259e2d7067b7eccd3fecbed79bf339af7bac223766451a5f3d5303e32b
sha512=629bafa73a69b460a521eb7aa46a3ca5b0aa29445df49eaecdac3f2cfca78684ba7d5db1b20b0af731e3830561d77d844983ee51f0eff17c4fa8941023920e8f

doc/qcow-types/Qcow_locks/index.html

Module Qcow_locksSource

Sourcetype t

A set of per-cluster read and write locks

Sourceval make : unit -> t

Create a set of locks

Sourcetype lock

A value which represents holding a lock

Sourceval unlock : lock -> unit

unlock lock releases the lock. Note releasing the same lock more than once will trigger a runtime failure.

Sourcemodule Client : sig ... end
Sourcemodule Read : sig ... end

Non-exclusive read locks

Sourcemodule Write : sig ... end

Exclusive write locks

Sourceval with_metadata_lock : t -> (unit -> 'a Lwt.t) -> 'a Lwt.t

with_metadata_lock t f executes f () with the global metadata lock held. This prevents metadata blocks from moving while they're being used.

Sourcemodule Debug : sig ... end