Module yaque::mutex[][src]

A persistent mutex implementation using the atomicity of OpenOptions::create_new

Please note that this Mutex just really works if other processeses in your system are willing to “play nice” with you. In most systems (Unix-like), locks are mostly advisory.

Structs

FileGuard

A lock using the atomicity of OpenOptions::create_new.

Mutex

A persistent mutex implementation using the atomicity of OpenOptions::create_new. This structure, as opposed to FileGuard, holds some content in a separate file.

MutexGuard

A guard to the the Mutex when it is locked. This structure give access to the contents of the mutex.