lock-free-freelist
A fast lock free limited length free list for multiple producer and consumer. It is meant for cases where consumer is as fast as producer and hence the limited length of the free list doesn't matter.
It uses bitmaps of type usize to keep track of the free list and hence free list has a size equal to number of bits in usize. If usize is 8 bytes then 64 and if usize is 4 bytes then 32.
A free list can store free pointers for one type only. For example,
let free_list = new; // a free list for Box<i32>
Example
use ;
use ;
extern crate lazy_static;
// from https://crates.io/crates/lazy_static
lazy_static!