UCommon
|
Linked allocator template to gather linked objects. More...
#include <containers.h>
Public Member Functions | |
T * | get (void) |
T * | get (timeout_t timeout) |
linked_allocator (size_t size) | |
void | release (T *node) |
Linked allocator template to gather linked objects.
This allocates the object pool in a single array as a single heap allocation, and releases the whole pool with a single delete when done. It is also threadsafe. The types used must be derived of LinkedObject.
Definition at line 475 of file containers.h.