mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-14 16:28:44 -04:00
Add @(futex=.Wait) and @(futex=.Wake) with intrinsics.Futex_Operation, so the atomic analysis checks futex words, and use relaxed ordering for Atomic_Cond's counter
This commit is contained in:
1 parent
bb9f0a2c47
commit
ecedcbc0bf
10 files changed
+130
-36
No files matched your search
@@ -813,6 +813,19 @@ char const *OdinAtomicMemoryOrder_strings[OdinAtomicMemoryOrder_COUNT] = {
|
||||
|
||||
gb_global Type *t_atomic_memory_order = nullptr;
|
||||
|
||||
enum OdinFutexOperation : i32 {
|
||||
OdinFutexOperation_Wait = 0,
|
||||
OdinFutexOperation_Wake = 1,
|
||||
OdinFutexOperation_COUNT,
|
||||
};
|
||||
|
||||
char const *OdinFutexOperation_strings[OdinFutexOperation_COUNT] = {
|
||||
"Wait",
|
||||
"Wake",
|
||||
};
|
||||
|
||||
gb_global Type *t_futex_operation = nullptr;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user