Skip to content

Commit

Permalink
fix windows build error caused by mis-replacing text
Browse files Browse the repository at this point in the history
  • Loading branch information
mqy committed Jun 27, 2023
1 parent b1d402d commit fef9eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/task-allocator/task-allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fef9eac

Please sign in to comment.