Module concread::cowcell

source ·
Expand description

CowCell - A concurrently readable cell with Arc

A CowCell can be used in place of a RwLock. Readers are guaranteed that the data will not change during the lifetime of the read. Readers do not block writers, and writers do not block readers. Writers are serialised same as the write in a RwLock.

This is the Arc collected implementation. Arc is slightly slower than EbrCell but has better behaviour with very long running read operations, and more accurate memory reclaim behaviour.

Structs

A conncurrently readable cell.
A CowCell Read Transaction handle.
A CowCell Write Transaction handle.