diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-26 10:18:46 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-09-26 10:18:46 +0100 |
| commit | 01c10f3f5eefb0473cce3a0cdd381b6db39cf1bb (patch) | |
| tree | f757fe31f86744b3d1abeb23e05e2a9a2bf8623d /src/types.cpp | |
| parent | 42b9039a1fd0307f8b46cd1c750e11db653acea1 (diff) | |
Use `RecursiveMutex` to fix a race condition with parapoly records
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp index 4515b2c60..8604c5363 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -18,8 +18,8 @@ enum BasicKind { Basic_u16, Basic_i32, Basic_u32, - Basic_i64, - Basic_u64, + Basic_i64 +, Basic_u64, Basic_i128, Basic_u128, @@ -2860,6 +2860,7 @@ gb_internal bool are_types_identical(Type *x, Type *y) { return false; } + // MUTEX_GUARD(&g_type_mutex); return are_types_identical_internal(x, y, false); } gb_internal bool are_types_identical_unique_tuples(Type *x, Type *y) { @@ -2887,6 +2888,7 @@ gb_internal bool are_types_identical_unique_tuples(Type *x, Type *y) { return false; } + // MUTEX_GUARD(&g_type_mutex); return are_types_identical_internal(x, y, true); } |