Narrow global gen_procs_mutex further

This commit is contained in:
gingerBill
2023-01-02 23:50:48 +00:00
parent fd62ee14cd
commit e10fe91eba
3 changed files with 5 additions and 7 deletions

View File

@@ -51,6 +51,7 @@ gb_internal bool check_rtti_type_disallowed(Ast *expr, Type *type, char const *f
gb_internal void scope_reset(Scope *scope) {
if (scope == nullptr) return;
MUTEX_GUARD(&scope->mutex);
scope->head_child.store(nullptr, std::memory_order_relaxed);
string_map_clear(&scope->elements);
ptr_set_clear(&scope->imported);