Module sync

Module sync 

Source
Expand description

Single-acquirer pool: one thread acquires, any thread can return.

Items are acquired from a single point (the Acquirer) and can be returned from any thread via Drop on Pooled.

Uses LIFO ordering for cache locality.

Structsยง

Pool
A bounded pool where one thread acquires and any thread can return.
Pooled
RAII guard that returns the object to the pool on drop.