mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 19:52:30 +00:00
Minor mutex rearrangement
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user