aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-12-22 12:58:23 +0000
committergingerBill <bill@gingerbill.org>2022-12-22 12:58:23 +0000
commitffa14c3aad5472aab32711c2500c67df9a368601 (patch)
tree352133af440b0f5ce83b3052aaaeb991c8386287 /src/parser.cpp
parent41b32f0da4b40295771e2a9a521b89464d98201b (diff)
Remove need the MPMC in single threaded case
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index cb9713985..e07f26004 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -5651,7 +5651,7 @@ gb_internal bool parse_file(Parser *p, AstFile *f) {
f->time_to_parse = cast(f64)(end-start)/cast(f64)time_stamp__freq();
for (int i = 0; i < AstDelayQueue_COUNT; i++) {
- mpmc_init(f->delayed_decls_queues+i, heap_allocator(), f->delayed_decl_count);
+ array_init(f->delayed_decls_queues+i, heap_allocator(), 0, f->delayed_decl_count);
}