Add mutex to Scope lookups and insertions

This commit is contained in:
gingerBill
2021-08-18 11:17:14 +01:00
parent 84b0da44db
commit a01c946c20
4 changed files with 55 additions and 43 deletions
+1
View File
@@ -191,6 +191,7 @@ struct Scope {
std::atomic<Scope *> next;
std::atomic<Scope *> head_child;
BlockingMutex mutex;
StringMap<Entity *> elements;
PtrSet<Scope *> imported;