v0.0.4 - odin build_dll, atomic.odin, sync.odin
This commit is contained in:
1 parent
de9016b7d0
commit
a6f8c9d6e0
11 files changed
+125
-62
No files matched your search
+1
-1
@@ -4112,7 +4112,7 @@ gb_inline i64 gb_atomic64_fetch_and(gbAtomic64 volatile *a, i64 operand) {
|
||||
|
||||
gb_inline i64 gb_atomic64_fetch_or(gbAtomic64 volatile *a, i64 operand) {
|
||||
#if defined(GB_ARCH_64_BIT)
|
||||
return _InterlockedAnd64(cast(i64 volatile *)a, operand);
|
||||
return _InterlockedOr64(cast(i64 volatile *)a, operand);
|
||||
#elif GB_CPU_X86
|
||||
i64 expected = a->value;
|
||||
for (;;) {
|
||||
|
||||
Reference in new issue
Block a user