diff options
| author | gingerBill <bill@gingerbill.org> | 2022-12-22 12:58:23 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-12-22 12:58:23 +0000 |
| commit | ffa14c3aad5472aab32711c2500c67df9a368601 (patch) | |
| tree | 352133af440b0f5ce83b3052aaaeb991c8386287 /src/parser.hpp | |
| parent | 41b32f0da4b40295771e2a9a521b89464d98201b (diff) | |
Remove need the MPMC in single threaded case
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 4357573c9..c33739ebe 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -132,9 +132,8 @@ struct AstFile { CommentGroup *docs; // current docs Array<CommentGroup *> comments; // All the comments! - // TODO(bill): make this a basic queue as it does not require - // any multiple thread capabilities - MPMCQueue<Ast *> delayed_decls_queues[AstDelayQueue_COUNT]; + // This is effectively a queue but does not require any multi-threading capabilities + Array<Ast *> delayed_decls_queues[AstDelayQueue_COUNT]; #define PARSER_MAX_FIX_COUNT 6 isize fix_count; |