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.14.0.tbz
sha256=0c7845059853675ae99bf0d1463670f81af4e84131f9c871e0cc5e813fb53504
sha512=5bb14b6a1ca355f09fc800692ba97590c6d653823b4df951a11c3bfd83c574b41364e32b124738c219bbb5d11af3ea04d7b69afe9562f5112c2cb6b6834e77d1

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