Crate poolshark

Crate poolshark 

Source

Modules§

arc
pooled

Structs§

Pooled
A generic wrapper for pooled objects. This handles keeping track of the pool pointer for you and allows you to wrap almost any container type easily.
RawPool
a lock-free, thread-safe, dynamically-sized object pool.
WeakPool

Traits§

Poolable
Trait for poolable objects
RawPoolable
Implementing this trait allows full low level control over where the pool pointer is stored. For example if you are pooling an allocated data structure, you could store the pool pointer in the allocation to keep the size of the handle struct to a minimum. E.G. you’re pooling a ThinArc. Or, if you have a static global pool, then you would not need to keep a pool pointer at all.

Functions§

take_t
Take a poolable type T from the generic thread local pool set. It is much more efficient to construct your own pools. size and max are the pool parameters used if the pool doesn’t already exist.

Type Aliases§

Pool