Lines Matching refs:serial
50 #define SERIAL_DIRTY(serial) ((serial)&1) argument
51 #define SERIAL_VALUE_LEN(serial) ((serial) >> 24) argument
122 return atomic_load_explicit(pa->serial(), memory_order_acquire); in AreaSerial()
145 uint32_t new_serial = load_const_atomic(&pi->serial, memory_order_acquire); in ReadMutablePropertyValue()
146 uint32_t serial; in ReadMutablePropertyValue() local
149 serial = new_serial; in ReadMutablePropertyValue()
150 len = SERIAL_VALUE_LEN(serial); in ReadMutablePropertyValue()
151 if (__predict_false(SERIAL_DIRTY(serial))) { in ReadMutablePropertyValue()
159 new_serial = load_const_atomic(&pi->serial, memory_order_relaxed); in ReadMutablePropertyValue()
160 if (__predict_true(serial == new_serial)) { in ReadMutablePropertyValue()
171 return serial; in ReadMutablePropertyValue()
175 uint32_t serial = ReadMutablePropertyValue(pi, value); in Read() local
194 return SERIAL_VALUE_LEN(serial); in Read()
199 const char* value, uint32_t serial), in ReadCallback() argument
204 uint32_t serial = load_const_atomic(&pi->serial, memory_order_relaxed); in ReadCallback() local
206 callback(cookie, pi->name, pi->long_value(), serial); in ReadCallback()
208 callback(cookie, pi->name, pi->value, serial); in ReadCallback()
214 uint32_t serial = ReadMutablePropertyValue(pi, value_buf); in ReadCallback() local
215 callback(cookie, pi->name, value_buf, serial); in ReadCallback()
248 uint32_t serial = atomic_load_explicit(&pi->serial, memory_order_relaxed); in Update() local
249 unsigned int old_len = SERIAL_VALUE_LEN(serial); in Update()
257 serial |= 1; in Update()
258 atomic_store_explicit(&pi->serial, serial, memory_order_relaxed); in Update()
263 atomic_store_explicit(&pi->serial, (len << 24) | ((serial + 1) & 0xffffff), memory_order_relaxed); in Update()
264 __futex_wake(&pi->serial, INT32_MAX); // Fence by side effect in Update()
265 atomic_store_explicit(serial_pa->serial(), in Update()
266 atomic_load_explicit(serial_pa->serial(), memory_order_relaxed) + 1, in Update()
268 __futex_wake(serial_pa->serial(), INT32_MAX); in Update()
305 atomic_store_explicit(serial_pa->serial(), in Add()
306 atomic_load_explicit(serial_pa->serial(), memory_order_relaxed) + 1, in Add()
308 __futex_wake(serial_pa->serial(), INT32_MAX); in Add()
332 serial_ptr = serial_pa->serial(); in Wait()
334 serial_ptr = const_cast<atomic_uint_least32_t*>(&pi->serial); in Wait()