ucc::linked_allocator< T > Class Template Reference

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

#include <containers.h>

Inheritance diagram for ucc::linked_allocator< T >:

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

Collaboration graph
[legend]

Public Member Functions

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

Detailed Description

template<class T>
class ucc::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 446 of file containers.h.


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

Generated on Tue May 17 12:15:30 2011 for UCommon by  doxygen 1.5.6