mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-07 05:23:12 +00:00
Narrow global gen_procs_mutex further
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user