Implement MPMCQueue for procedure body checking

This is preparation for basic multithreading in the semantic checker
This commit is contained in:
gingerBill
2021-07-10 19:50:34 +01:00
parent ec9667ef5a
commit d8abe7fc4d
4 changed files with 125 additions and 27 deletions
+2 -3
View File
@@ -351,11 +351,10 @@ struct Checker {
CheckerContext builtin_ctx;
gbMutex procs_to_check_mutex;
gbMutex procs_with_deferred_to_check_mutex;
Array<ProcInfo *> procs_to_check;
Array<Entity *> procs_with_deferred_to_check;
MPMCQueue<ProcInfo *> procs_to_check_queue;
};