|
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 18 of file object_pool.h.
|
inline |
Definition at line 25 of file object_pool.h.
|
inline |
Definition at line 27 of file object_pool.h.
|
inline |
Definition at line 66 of file object_pool.h.
|
inline |
Definition at line 65 of file object_pool.h.
|
inline |
Definition at line 67 of file object_pool.h.
|
inline |
Definition at line 47 of file object_pool.h.
|
inline |
Definition at line 56 of file object_pool.h.