Home
last modified time | relevance | path

Searched refs:IS_NOT_READY (Results 1 - 2 of 2) sorted by relevance

/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Dfutex_tool.cpp51 if (current != IS_READY && current != IS_NOT_READY && current != IS_PRE_EXIT) { in FutexWait()
61 if (!futexPtr->compare_exchange_strong(expect, IS_NOT_READY)) { in FutexWait()
66 AUDIO_WARNING_LOG("recall while futex value is IS_NOT_READY"); in FutexWait()
75 res = syscall(__NR_futex, futexPtr, FUTEX_WAIT, IS_NOT_READY, (timeout <= 0 ? NULL : &waitTime), NULL, 0); in FutexWait()
101 if (current != IS_READY && current != IS_NOT_READY && current != IS_PRE_EXIT) { in FutexWake()
110 uint32_t expect = IS_NOT_READY; in FutexWake()
/foundation/multimedia/audio_framework/services/audio_service/common/include/
H A Dfutex_tool.h25 const uint32_t IS_NOT_READY = 1; member
38 * FutexWait will first try change futexPtr from IS_READY to IS_NOT_READY, then acomicly wait on IS_NOT_READY.
39 * After Waked up, will check futexPtr == IS_NOT_READY

Completed in 1 milliseconds