Struct std::NodePool
generic<N> struct NodePool {
?&heap unsigned char chunks;
?&heap unsigned char bump;
unsigned long bump_left;
?&heap unsigned char free_list;
unsigned long next_chunk;
}Fields
chunk list; first word of each chunk links the next
next uncarved node in the newest chunk
nodes left to carve there
recycled nodes; first word links the next
node count of the next chunk
Methods
uninitialised node; null on OOM
return a node for reuse
release every chunk (all nodes)
empty; first chunk allocated on the first take()