Fix cond_wait synchronizing on the condition variable; match objects within each other; mark more Win32 waits

This commit is contained in:
gingerBill committed 2026-10-08 23:14:14 +01:00
1 parent 8bf769b039
commit 80f640c18d
4 files changed
+16 -5

No files matched your search

+12 -1
View File
@@ -376,7 +376,18 @@ gb_internal AtomicObject check_atomic_object(Ast *expr) {
}
gb_internal bool check_atomic_same_object(AtomicObject const &a, AtomicObject const &b) {
return a.root != nullptr && a.root == b.root && a.path == b.path;
if (a.root == nullptr || a.root != b.root) {
return false;
}
String outer = a.path;
String inner = b.path;
if (outer.len > inner.len) {
gb_swap(String, outer, inner);
}
if (!string_starts_with(inner, outer)) {
return false;
}
return inner.len == outer.len || inner[outer.len] == '.' || inner[outer.len] == '[';
}
gb_internal Ast *check_atomic_call_address(Ast *call) {