Lines Matching full:oldval
57 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \
58 InterlockedCompareExchangePointer(dest, newval, oldval)
62 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \
63 __sync_val_compare_and_swap(dest, oldval, newval)
65 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \
66 mutexed_compare_and_swap(dest, newval, oldval)
71 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \
72 mutexed_compare_and_swap(dest, newval, oldval)
75 static void *mutexed_compare_and_swap(void **dest, void *newval, void *oldval);
353 static void *mutexed_compare_and_swap(void **dest, void *newval, void *oldval) {
356 if (temp == oldval) {