diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-15 11:49:07 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-15 11:49:07 +0100 |
| commit | c5decd3eaecf393e1bf216b4d864fc9cfc5db0c2 (patch) | |
| tree | 964ebce0f055d1a0c984290f7388adfbfddd3e8a /src/queue.cpp | |
| parent | 664a71454bd2c58ab6f06f8de6d7d34c3eb397d7 (diff) | |
Fix possible race and correct linkage _after_ generation
Diffstat (limited to 'src/queue.cpp')
| -rw-r--r-- | src/queue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue.cpp b/src/queue.cpp index 2ad9cb29f..dee9ad1f8 100644 --- a/src/queue.cpp +++ b/src/queue.cpp @@ -16,7 +16,7 @@ struct MPSCQueue { std::atomic<isize> count; }; -template <typename T> gb_internal void mpsc_init (MPSCQueue<T> *q); +template <typename T> gb_internal void mpsc_init (MPSCQueue<T> *q, gbAllocator const &allocator); template <typename T> gb_internal void mpsc_destroy(MPSCQueue<T> *q); template <typename T> gb_internal isize mpsc_enqueue(MPSCQueue<T> *q, T const &value); template <typename T> gb_internal bool mpsc_dequeue(MPSCQueue<T> *q, T *value_); |