Lines Matching refs:state
22 STATIC_ASSERT(((pthread_once_t)ONCE_FLAG_INIT).state == ((pthread_once_t)PTHREAD_ONCE_INIT).state);
23 STATIC_ASSERT(((pthread_once_t)PTHREAD_ONCE_INIT).state == STATE_UNINITIALIZED);
36 // reset the control state to uninitialized
37 int32 value = atomic_get_and_set((int32*)&onceControl->state,
53 // The state goes through at most four states:
54 // STATE_UNINITIALIZED: The initial uninitialized state.
66 int32 value = atomic_test_and_set((int32*)&onceControl->state,
78 value = atomic_get_and_set((int32*)&onceControl->state,
94 value = atomic_test_and_set((int32*)&onceControl->state,
104 value = atomic_test_and_set((int32*)&onceControl->state,
118 while (atomic_get((int32*)&onceControl->state) == STATE_SPINNING);