#include <types.h>
Public Member Functions | |
T * | allocate () |
void | deallocate (T *item) |
small_heap () | |
void | stop_allocation () |
void | wait_until_empty () |
Private Attributes | |
T | buffer [C] |
std::condition_variable | cv |
bool | is_free [C] |
bool | keep_allocating = true |
std::mutex | mutex |
int | size = 0 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |