|
0 A.D. | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
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 |
private volatile uintptr_t is_in_use;
private T storage;
| Constructor Detail |
public SingleAllocator();
| Method Detail |
public T* alloc();
public void release( T* p );
|
0 A.D.
Generated on September 04, 2007 at 18:14 CppDoc v2.4.0 |
|||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||