Struct hv_stampede::BumpPool [−][src]
pub struct BumpPool { /* fields omitted */ }
Expand description
A thread-safe pool of Bump
s (provided as PooledBump
s). Internally, this is two pools;
the “ready” pool of Bump
s which do not yet have any objects tied to their lifetimes, and the
“shunned” pool of Bump
s which were detached using PooledBump::detach
and must not be
allocated from or destroyed until the entire pool is .reset()
.
Implementations
Reset the BumpPool
, returning any “shunned” allocators to the “ready” pool and resetting
all pooled allocators.