diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-18 16:53:46 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-18 16:53:46 +0100 |
| commit | 9eefbb4afc9601024eac6191addd98e21f90a5b3 (patch) | |
| tree | e26771a2ba2d93c58940f011d8701372419f6cb8 /include/allocator.h | |
| parent | 40027e44e5d0f0040238cfc1bd6a8d80c17c54fb (diff) | |
multithread outgoing network messages, thread safe allocator, refactor
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 |
