mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 04:35:00 -07:00
Replace the atomic intrinsics
Matching C11 in style
This commit is contained in:
@@ -692,6 +692,19 @@ gb_global Type *t_objc_id = nullptr;
|
||||
gb_global Type *t_objc_SEL = nullptr;
|
||||
gb_global Type *t_objc_Class = nullptr;
|
||||
|
||||
enum OdinAtomicMemoryOrder : i32 {
|
||||
OdinAtomicMemoryOrder_relaxed = 0,
|
||||
OdinAtomicMemoryOrder_consume = 1,
|
||||
OdinAtomicMemoryOrder_acquire = 2,
|
||||
OdinAtomicMemoryOrder_release = 3,
|
||||
OdinAtomicMemoryOrder_acq_rel = 4,
|
||||
OdinAtomicMemoryOrder_seq_cst = 5,
|
||||
OdinAtomicMemoryOrder_COUNT,
|
||||
};
|
||||
|
||||
gb_global Type *t_atomic_memory_order = nullptr;
|
||||
|
||||
|
||||
|
||||
|
||||
gb_global RecursiveMutex g_type_mutex;
|
||||
|
||||
Reference in New Issue
Block a user