diff options
Diffstat (limited to 'include/allocator.h')
| -rw-r--r-- | include/allocator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/allocator.h b/include/allocator.h index d1fe9f4..a1c8bf0 100644 --- a/include/allocator.h +++ b/include/allocator.h @@ -7,10 +7,12 @@ typedef struct t_allocator { void* memory; uint64_t cursor; uint64_t size; + mutex mutex; } allocator; allocator create_allocator(uint64_t size); void* allocator_alloc(allocator* al, uint64_t size); void destroy_allocator(allocator* al); +void allocator_clear(allocator* al); #endif
\ No newline at end of file |
