Lines Matching defs:guard_object
118 extern "C" int __cxa_guard_acquire(volatile guard_t *guard_object)
125 if (INITIALISED == *INIT_PART(guard_object))
133 old = __sync_val_compare_and_swap(LOCK_PART(guard_object),
138 if (INIT_PART(guard_object) == LOCK_PART(guard_object))
140 if (INITIALISED != *INIT_PART(guard_object))
145 *LOCK_PART(guard_object) = INITIAL;
150 if (INIT_PART(guard_object) == LOCK_PART(guard_object) &&
158 if (INIT_PART(guard_object) != LOCK_PART(guard_object) &&
159 INITIALISED == *INIT_PART(guard_object))
169 extern "C" void __cxa_guard_abort(volatile guard_t *guard_object)
172 bool reset = __sync_bool_compare_and_swap(LOCK_PART(guard_object),
180 extern "C" void __cxa_guard_release(volatile guard_t *guard_object)
183 if (INIT_PART(guard_object) == LOCK_PART(guard_object))
188 bool reset = __sync_bool_compare_and_swap(INIT_PART(guard_object),
191 if (INIT_PART(guard_object) != LOCK_PART(guard_object))
192 *LOCK_PART(guard_object) = INITIAL;