Crate spin

source ·
Expand description

Synchronization primitives based on spinning

Structs

This type provides MUTual EXclusion based on spinning.
A guard to which the protected data can be accessed
A synchronization primitive which can be used to run a one-time global initialization. Unlike its std equivalent, this is generalized so that the closure returns a value and it is stored. Once therefore acts something like a future, too.
A reader-writer lock
A guard from which the protected data can be read
A guard from which the protected data can be read, and can be upgraded to a writable guard if needed
A guard to which the protected data can be written