[][src]Module node_replication::rwlock

The distributed readers-writer lock used by the replica.

This module is only public since it needs to be exposed to the benchmarking code. For clients there is no need to rely on this directly, as the RwLock is embedded inside the Replica.

Structs

ReadGuard

A read-guard that can be used to read the underlying data structure. Writes on the data structure will be blocked as long as one of these is lying around.

RwLock

A scalable reader-writer lock.

WriteGuard

A write-guard that can be used to write to the underlying data structure. All reads will be blocked until this is dropped.