Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Thread-safe, realtime-safe object pool. More...
#include <src/utils/object_pool.h>
Public Member Functions | |
ObjectPool (size_t initial_capacity=64) | |
T * | acquire () |
void | release (T *object) |
void | reserve (size_t size) |
auto | get_num_in_use () const |
auto | get_capacity () const |
auto | get_size () const |
Thread-safe, realtime-safe object pool.
T | The type of objects to be pooled. Must be default-constructible. |
Definition at line 17 of file object_pool.h.
|
inline |
Definition at line 24 of file object_pool.h.
|
inline |
Definition at line 26 of file object_pool.h.
|
inline |
Definition at line 65 of file object_pool.h.
|
inline |
Definition at line 64 of file object_pool.h.
|
inline |
Definition at line 66 of file object_pool.h.
|
inline |
Definition at line 46 of file object_pool.h.
|
inline |
Definition at line 55 of file object_pool.h.