Searched refs:once_control_ptr (Results 1 – 1 of 1) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_once.cpp | 47 atomic_int* once_control_ptr = reinterpret_cast<atomic_int*>(once_control); in pthread_once() local 54 int old_value = atomic_load_explicit(once_control_ptr, memory_order_acquire); in pthread_once() 63 if (!atomic_compare_exchange_weak_explicit(once_control_ptr, &old_value, in pthread_once() 74 atomic_store_explicit(once_control_ptr, ONCE_INITIALIZATION_COMPLETE, memory_order_release); in pthread_once() 77 __futex_wake_ex(once_control_ptr, 0, INT_MAX); in pthread_once() 82 __futex_wait_ex(once_control_ptr, 0, old_value, false, nullptr); in pthread_once() 83 old_value = atomic_load_explicit(once_control_ptr, memory_order_acquire); in pthread_once()
|