Remove global semaphore and place in CheckerInfo

This commit is contained in:
gingerBill
2021-07-27 21:42:43 +01:00
parent e17593be94
commit 4080ba4026
2 changed files with 74 additions and 12 deletions
+2
View File
@@ -293,6 +293,8 @@ 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;
// NOT recursive & Only used at the end of `check_proc_body`
// This is a possible source of contention but probably not
// too much of a problem in practice