mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Move the mutex up a little
This commit is contained in:
@@ -2622,11 +2622,11 @@ gb_internal lbValue lb_find_procedure_value_from_entity(lbModule *m, Entity *e)
|
|||||||
GB_ASSERT(other_module != nullptr);
|
GB_ASSERT(other_module != nullptr);
|
||||||
mutex_lock(&other_module->values_mutex);
|
mutex_lock(&other_module->values_mutex);
|
||||||
auto *found = map_get(&other_module->values, e);
|
auto *found = map_get(&other_module->values, e);
|
||||||
|
mutex_unlock(&other_module->values_mutex);
|
||||||
if (found == nullptr) {
|
if (found == nullptr) {
|
||||||
lbProcedure *missing_proc_in_other_module = lb_create_procedure(other_module, e, false);
|
lbProcedure *missing_proc_in_other_module = lb_create_procedure(other_module, e, false);
|
||||||
array_add(&other_module->missing_procedures_to_check, missing_proc_in_other_module);
|
array_add(&other_module->missing_procedures_to_check, missing_proc_in_other_module);
|
||||||
}
|
}
|
||||||
mutex_unlock(&other_module->values_mutex);
|
|
||||||
} else {
|
} else {
|
||||||
array_add(&m->missing_procedures_to_check, missing_proc);
|
array_add(&m->missing_procedures_to_check, missing_proc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user