Lines Matching refs:value
44 volatile char value; member
48 volatile long value; member
50 volatile int value;
55 _Atomic(bool) value;
58 _Atomic(int) value;
62 volatile bool value; member
65 volatile int value; member
92 #define ZEND_ATOMIC_BOOL_INIT(obj, desired) ((obj)->value = (desired)) in BEGIN_EXTERN_C()
93 #define ZEND_ATOMIC_INT_INIT(obj, desired) ((obj)->value = (desired)) in BEGIN_EXTERN_C()
95 #define ZEND_ATOMIC_BOOL_INITIALIZER(desired) {.value = (desired)} in BEGIN_EXTERN_C()
96 #define ZEND_ATOMIC_INT_INITIALIZER(desired) {.value = (desired)}
99 return InterlockedExchange8(&obj->value, desired);
103 return (int) InterlockedExchange(&obj->value, desired); in zend_atomic_int_exchange_ex()
107 bool prev = (bool) InterlockedCompareExchange8(&obj->value, *expected, desired); in zend_atomic_bool_compare_exchange_ex()
117 int prev = (int) InterlockedCompareExchange(&obj->value, *expected, desired); in zend_atomic_int_compare_exchange_ex()
129 return InterlockedOr8(&obj->value, false); in zend_atomic_bool_load_ex()
134 return (int) InterlockedOr(&obj->value, 0); in zend_atomic_int_load_ex()
138 (void)InterlockedExchange8(&obj->value, desired); in zend_atomic_bool_store_ex()
142 (void)InterlockedExchange(&obj->value, desired); in zend_atomic_int_store_ex()
147 #define ZEND_ATOMIC_BOOL_INIT(obj, desired) __c11_atomic_init(&(obj)->value, (desired))
148 #define ZEND_ATOMIC_INT_INIT(obj, desired) __c11_atomic_init(&(obj)->value, (desired))
150 #define ZEND_ATOMIC_BOOL_INITIALIZER(desired) {.value = (desired)}
151 #define ZEND_ATOMIC_INT_INITIALIZER(desired) {.value = (desired)}
154 return __c11_atomic_exchange(&obj->value, desired, __ATOMIC_SEQ_CST);
158 return __c11_atomic_exchange(&obj->value, desired, __ATOMIC_SEQ_CST);
162 …return __c11_atomic_compare_exchange_strong(&obj->value, expected, desired, __ATOMIC_SEQ_CST, __AT…
166 …return __c11_atomic_compare_exchange_strong(&obj->value, expected, desired, __ATOMIC_SEQ_CST, __AT…
170 return __c11_atomic_load(&obj->value, __ATOMIC_SEQ_CST);
174 return __c11_atomic_load(&obj->value, __ATOMIC_SEQ_CST);
178 __c11_atomic_store(&obj->value, desired, __ATOMIC_SEQ_CST);
182 __c11_atomic_store(&obj->value, desired, __ATOMIC_SEQ_CST);
189 #define ZEND_ATOMIC_BOOL_INIT(obj, desired) ((obj)->value = (desired))
190 #define ZEND_ATOMIC_INT_INIT(obj, desired) ((obj)->value = (desired))
192 #define ZEND_ATOMIC_BOOL_INITIALIZER(desired) {.value = (desired)}
193 #define ZEND_ATOMIC_INT_INITIALIZER(desired) {.value = (desired)}
197 __atomic_exchange(&obj->value, &desired, &prev, __ATOMIC_SEQ_CST);
203 __atomic_exchange(&obj->value, &desired, &prev, __ATOMIC_SEQ_CST);
208 …return __atomic_compare_exchange(&obj->value, expected, &desired, /* weak */ false, __ATOMIC_SEQ_C…
212 …return __atomic_compare_exchange(&obj->value, expected, &desired, /* weak */ false, __ATOMIC_SEQ_C…
217 __atomic_load(&obj->value, &prev, __ATOMIC_SEQ_CST);
223 __atomic_load(&obj->value, &prev, __ATOMIC_SEQ_CST);
228 __atomic_store(&obj->value, &desired, __ATOMIC_SEQ_CST);
232 __atomic_store(&obj->value, &desired, __ATOMIC_SEQ_CST);
237 #define ZEND_ATOMIC_BOOL_INIT(obj, desired) ((obj)->value = (desired))
238 #define ZEND_ATOMIC_INT_INIT(obj, desired) ((obj)->value = (desired))
240 #define ZEND_ATOMIC_BOOL_INITIALIZER(desired) {.value = (desired)}
241 #define ZEND_ATOMIC_INT_INITIALIZER(desired) {.value = (desired)}
244 bool prev = __sync_lock_test_and_set(&obj->value, desired);
254 int prev = __sync_lock_test_and_set(&obj->value, desired);
264 bool prev = __sync_val_compare_and_swap(&obj->value, *expected, desired);
274 int prev = __sync_val_compare_and_swap(&obj->value, *expected, desired);
285 return __sync_fetch_and_or(&obj->value, false);
290 return __sync_fetch_and_or(&obj->value, 0);
295 obj->value = desired;
301 obj->value = desired;
309 #define ZEND_ATOMIC_BOOL_INIT(obj, desired) ((obj)->value = (desired))
310 #define ZEND_ATOMIC_INT_INIT(obj, desired) ((obj)->value = (desired))
312 #define ZEND_ATOMIC_BOOL_INITIALIZER(desired) {.value = (desired)}
313 #define ZEND_ATOMIC_INT_INITIALIZER(desired) {.value = (desired)}
316 obj->value = desired;
320 obj->value = desired;
324 bool prev = obj->value;
326 obj->value = desired;
335 int prev = obj->value;
337 obj->value = desired;
346 return obj->value;
350 return obj->value;
354 bool prev = obj->value;
355 obj->value = desired;
360 int prev = obj->value;
361 obj->value = desired;