Home
last modified time | relevance | path

Searched refs:bitmask (Results 1 – 2 of 2) sorted by relevance

/system/libfmq/
DEventFlag.cpp73 status_t EventFlag::wake(uint32_t bitmask) { in wake() argument
77 if (bitmask == 0) { in wake()
82 uint32_t old = std::atomic_fetch_or(mEfWordPtr, bitmask); in wake()
88 if ((~old & bitmask) != 0) { in wake()
89 int ret = syscall(__NR_futex, mEfWordPtr, FUTEX_WAKE_BITSET, kIntMax, NULL, NULL, bitmask); in wake()
102 status_t EventFlag::waitHelper(uint32_t bitmask, uint32_t* efState, int64_t timeoutNanoSeconds) { in waitHelper() argument
106 if (bitmask == 0 || efState == nullptr) { in waitHelper()
111 uint32_t old = std::atomic_fetch_and(mEfWordPtr, ~bitmask); in waitHelper()
112 uint32_t setBits = old & bitmask; in waitHelper()
121 uint32_t efWord = old & ~bitmask; in waitHelper()
[all …]
/system/libfmq/include/fmq/
DEventFlag.h70 status_t wake(uint32_t bitmask);
89 status_t wait(uint32_t bitmask,
113 status_t waitHelper(uint32_t bitmask, uint32_t* efState, int64_t timeOutNanoSeconds);