Remove need the MPMC in single threaded case

This commit is contained in:
gingerBill
2022-12-22 12:58:23 +00:00
parent 41b32f0da4
commit ffa14c3aad
3 changed files with 14 additions and 13 deletions
+2 -3
View File
@@ -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;