Home
last modified time | relevance | path

Searched refs:IS_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()
60 uint32_t expect = IS_READY; in FutexWait()
76 if (res == 0 && futexPtr->load() == IS_READY) { in FutexWait()
101 if (current != IS_READY && current != IS_NOT_READY && current != IS_PRE_EXIT) { in FutexWake()
111 if (futexPtr->compare_exchange_strong(expect, IS_READY)) { in FutexWake()
/foundation/multimedia/audio_framework/services/audio_service/common/include/
H A Dfutex_tool.h24 const uint32_t IS_READY = 0; member
38 * FutexWait will first try change futexPtr from IS_READY to IS_NOT_READY, then acomicly wait on IS_NOT_READY.
42 static FutexCode FutexWake(std::atomic<uint32_t> *futexPtr, uint32_t wakeVal = IS_READY);

Completed in 1 milliseconds