112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
static OF_INLINE bool
OFAtomicIntCompareAndSwap(volatile int *_Nonnull p, int o, int n)
{
return __sync_bool_compare_and_swap(p, o, n);
}
static OF_INLINE bool
OFAtomicInt32CompAndSwap(volatile int32_t *_Nonnull p, int32_t o, int32_t n)
{
return __sync_bool_compare_and_swap(p, o, n);
}
static OF_INLINE bool
OFAtomicPointerCompareAndSwap(void *volatile _Nullable *_Nonnull p,
void *_Nullable o, void *_Nullable n)
|
|
|
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
static OF_INLINE bool
OFAtomicIntCompareAndSwap(volatile int *_Nonnull p, int o, int n)
{
return __sync_bool_compare_and_swap(p, o, n);
}
static OF_INLINE bool
OFAtomicInt32CompareAndSwap(volatile int32_t *_Nonnull p, int32_t o, int32_t n)
{
return __sync_bool_compare_and_swap(p, o, n);
}
static OF_INLINE bool
OFAtomicPointerCompareAndSwap(void *volatile _Nullable *_Nonnull p,
void *_Nullable o, void *_Nullable n)
|