Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

lib
Class SingleAllocator

   in allocators.h

template < class T > class SingleAllocator

C++ wrapper on top of single_calloc that's slightly easier to use. T must be POD (Plain Old Data) because it is memset to 0!


Field Summary
private volatile uintptr_t is_in_use
          
private T storage
          
 
Constructor Summary
SingleAllocator()
          
 
Method Summary
 T* alloc()
          
 void release( T* p )
          
 

Field Detail

is_in_use

private volatile uintptr_t is_in_use;

storage

private T storage;


Constructor Detail

SingleAllocator

public SingleAllocator();


Method Detail

alloc

public T* alloc();

release

public void release( T* p );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD