mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-04 15:47:03 +00:00
Enforce atomic on hasher id
This commit is contained in:
@@ -2619,6 +2619,7 @@ gb_internal lbValue lb_find_procedure_value_from_entity(lbModule *m, Entity *e)
|
||||
|
||||
lbProcedure *missing_proc = lb_create_procedure(m, e, ignore_body);
|
||||
if (ignore_body) {
|
||||
GB_ASSERT(other_module != nullptr);
|
||||
mutex_lock(&other_module->values_mutex);
|
||||
auto *found = map_get(&other_module->values, e);
|
||||
if (found == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user