aboutsummaryrefslogtreecommitdiff
path: root/src/queue.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-09-10 21:16:56 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-09-10 21:16:56 +0100
commit992cad101c495e9a0c96a46c0eb50f6a59c7e68f (patch)
treed2614ade5dd9ad69e7e2ffc398aa54a740657c92 /src/queue.cpp
parent549edcc0f90d632587c427e5d4189721323bd4a8 (diff)
Minor mutex rearrangement
Diffstat (limited to 'src/queue.cpp')
-rw-r--r--src/queue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/queue.cpp b/src/queue.cpp
index dee9ad1f8..82f82f3e1 100644
--- a/src/queue.cpp
+++ b/src/queue.cpp
@@ -36,7 +36,8 @@ gb_internal void mpsc_destroy(MPSCQueue<T> *q) {
template <typename T>
gb_internal MPSCNode<T> *mpsc_alloc_node(MPSCQueue<T> *q, T const &value) {
- auto new_node = gb_alloc_item(heap_allocator(), MPSCNode<T>);
+ // auto new_node = gb_alloc_item(heap_allocator(), MPSCNode<T>);
+ auto new_node = gb_alloc_item(permanent_allocator(), MPSCNode<T>);
new_node->value = value;
return new_node;
}