#include <types.h>
Public Member Functions | |
| T * | allocate () |
| void | deallocate (T *item) |
| int | get_size () const |
| bool | is_empty () const |
| small_heap () | |
| void | stop_allocation () |
| void | wait_until_empty () |
Static Public Attributes | |
| static const int | CAPACITY = C |
Private Attributes | |
| T | buffer [C] |
| std::condition_variable | cv |
| bool | is_free [C] |
| bool | keep_allocating = true |
| std::mutex | mutex |
| int | size = 0 |
Definition at line 1163 of file src/types.h.
|
inline |
Definition at line 1175 of file src/types.h.
|
inline |
Definition at line 1184 of file src/types.h.
|
inline |
Definition at line 1201 of file src/types.h.
|
inline |
Definition at line 1246 of file src/types.h.
|
inline |
Definition at line 1245 of file src/types.h.
|
inline |
Definition at line 1225 of file src/types.h.
|
inline |
Definition at line 1231 of file src/types.h.
|
private |
Definition at line 1165 of file src/types.h.
|
static |
Definition at line 1173 of file src/types.h.
|
private |
Definition at line 1169 of file src/types.h.
|
private |
Definition at line 1166 of file src/types.h.
|
private |
Definition at line 1168 of file src/types.h.
|
private |
Definition at line 1167 of file src/types.h.
|
private |
Definition at line 1170 of file src/types.h.