Module claim

Module claim 

Source
Expand description

Examples of the claim mutual exclusion pattern, including an example of the claim_queue, which allows multiple workers to enqueue work and ensures that exactly one worker running if there is work to be done.

TODO: The example claim queue is strange, since it combines a counter with the claim queue logic. This is a decent example of composing semi-related algorithms with atomic_try_update, but it is unclear whether the example is general-purpose enough to be included here.

Structs§

WriteOrderingQueue

Traits§

Countable
A special purpose trait for WriteOrderingQueue