mirror of
https://github.com/odin-lang/Odin.git
synced 2026-03-04 07:37:04 +00:00
Replace RecursiveMutex with a BlockingMutex
This commit is contained in:
@@ -495,15 +495,14 @@ gb_internal LLVMMetadataRef lb_get_base_scope_metadata(lbModule *m, Scope *scope
|
||||
}
|
||||
|
||||
gb_internal LLVMMetadataRef lb_debug_type(lbModule *m, Type *type) {
|
||||
mutex_lock(&m->debug_values_mutex);
|
||||
defer (mutex_unlock(&m->debug_values_mutex));
|
||||
|
||||
GB_ASSERT(type != nullptr);
|
||||
LLVMMetadataRef found = lb_get_llvm_metadata(m, type);
|
||||
if (found != nullptr) {
|
||||
return found;
|
||||
}
|
||||
|
||||
MUTEX_GUARD(&m->debug_values_mutex);
|
||||
|
||||
if (type->kind == Type_Named) {
|
||||
LLVMMetadataRef file = nullptr;
|
||||
unsigned line = 0;
|
||||
|
||||
Reference in New Issue
Block a user