Move more of gb.h's Synchronization code into common.cpp

This commit is contained in:
gingerBill
2021-08-19 15:19:36 +01:00
parent 9ae4de2ab8
commit 5c4d95d539
4 changed files with 120 additions and 50 deletions
+2 -2
View File
@@ -294,7 +294,7 @@ struct CheckerInfo {
// NOTE(bill): If the semantic checker (check_proc_body) is to ever to be multithreaded,
// these variables will be of contention
gbSemaphore collect_semaphore;
Semaphore collect_semaphore;
UntypedExprInfoMap global_untyped; // NOTE(bill): This needs to be a map and not on the Ast
// as it needs to be iterated across afterwards
@@ -390,7 +390,7 @@ struct Checker {
MPMCQueue<Entity *> procs_with_deferred_to_check;
ProcBodyQueue procs_to_check_queue;
gbSemaphore procs_to_check_semaphore;
Semaphore procs_to_check_semaphore;
// TODO(bill): Technically MPSC queue
MPMCQueue<UntypedExprInfo> global_untyped_queue;