fix windows build error caused by mis-replacing text
This commit is contained in:
parent
b1d402d5fb
commit
fef9eac856
1 changed files with 3 additions and 3 deletions
|
@ -48,15 +48,15 @@ typedef HANDLE pthread_t;
|
|||
typedef int thread_ret_t;
|
||||
|
||||
static void atomic_store(atomic_int *ptr, LONG val) {
|
||||
Intechan_lockedExchange(ptr, val);
|
||||
InterlockedExchange(ptr, val);
|
||||
}
|
||||
|
||||
static LONG atomic_load(atomic_int *ptr) {
|
||||
return Intechan_lockedCompareExchange(ptr, 0, 0);
|
||||
return InterlockedCompareExchange(ptr, 0, 0);
|
||||
}
|
||||
|
||||
static LONG atomic_fetch_add(atomic_int *ptr, LONG inc) {
|
||||
return Intechan_lockedExchangeAdd(ptr, inc);
|
||||
return InterlockedExchangeAdd(ptr, inc);
|
||||
}
|
||||
|
||||
static LONG atomic_fetch_sub(atomic_int *ptr, LONG dec) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue