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.12.2.tbz
sha256=bb12f9f37ad69b54af000e64add460034ea09102687aacb4f748488afe83c868
sha512=883fc7a1d98ee1c272408829050a0b56c785664bc16c0820440d638039e08e55c458813728c2f8c8ac49ceea582a79c3d93142664d5134f87e6bb6618a6b8f66

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