package qcow-types

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

Install

Dune Dependency

Authors

Maintainers

Sources

qcow-0.12.1.tbz
sha256=c799f3c2eda00b345d37ccd759bcd7b8be8744216b77a38883ff4cd99727ae37
sha512=2160598f460240f9580991e7f7d69e3ef83a2e6ec62268b711840d359cd303d4e14a5d65d89ceb82a6f77b434d06a01af9daa7780808a885f3307909c11dcfd8

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
OCaml

Innovation. Community. Security.