ucommon
Public Member Functions
ucommon::linked_allocator< T > Class Template Reference

Linked allocator template to gather linked objects. More...

#include <containers.h>

Inheritance diagram for ucommon::linked_allocator< T >:
Inheritance graph
[legend]
Collaboration diagram for ucommon::linked_allocator< T >:
Collaboration graph
[legend]

Public Member Functions

T * get (void)
T * get (timeout_t timeout)
 linked_allocator (size_t size)
void release (T *node)

Detailed Description

template<class T>
class ucommon::linked_allocator< T >

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.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 475 of file containers.h.


The documentation for this class was generated from the following file: