#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 |
rsimpl::small_heap< T, C >::small_heap | ( | ) | [inline] |
T* rsimpl::small_heap< T, C >::allocate | ( | ) | [inline] |
void rsimpl::small_heap< T, C >::deallocate | ( | T * | item | ) | [inline] |
void rsimpl::small_heap< T, C >::stop_allocation | ( | ) | [inline] |
void rsimpl::small_heap< T, C >::wait_until_empty | ( | ) | [inline] |
T rsimpl::small_heap< T, C >::buffer[C] [private] |
std::condition_variable rsimpl::small_heap< T, C >::cv [private] |
bool rsimpl::small_heap< T, C >::is_free[C] [private] |
bool rsimpl::small_heap< T, C >::keep_allocating = true [private] |
std::mutex rsimpl::small_heap< T, C >::mutex [private] |
int rsimpl::small_heap< T, C >::size = 0 [private] |