Searched refs:UNLOCKED (Results 1 - 12 of 12) sorted by relevance
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/ |
H A D | mutex.cpp | 138 while (curState != UNLOCKED) { in FutexWait() 160 if (LIKELY(curState == UNLOCKED)) { in WriteLock() 166 if (!WaitBrieflyFor(&state_, [](int32_t state) { return state == UNLOCKED; })) { in WriteLock() 195 if (!WaitBrieflyFor(&state_, [](int32_t state) { return state >= UNLOCKED; })) { in HandleReadLockWait() 214 if (curState >= UNLOCKED) { in TryReadLock() 236 if (LIKELY(curState == UNLOCKED)) { in TryWriteLock() 269 // Reset exclusive owner before changing state to avoid check failures if other thread sees UNLOCKED in WriteUnlock() 275 done = state_.compare_exchange_weak(curState, UNLOCKED, std::memory_order_seq_cst); in WriteUnlock()
|
H A D | mutex.h | 149 if (LIKELY(curState >= UNLOCKED)) { in ACQUIRE_SHARED() 190 if (done && newState == UNLOCKED) { in RELEASE_SHARED() 207 static constexpr int32_t UNLOCKED = 0; variable
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/futex/ |
H A D | mutex.cpp | 142 if (LIKELY(cur_state == UNLOCKED)) { in WriteLock() 148 if (!WaitBrieflyFor(&state_, [](int32_t state) { return state == UNLOCKED; })) { in WriteLock() 154 while (cur_state != UNLOCKED) { in WriteLock() 180 if (!WaitBrieflyFor(&state_, [](int32_t state) { return state >= UNLOCKED; })) { in HandleReadLockWait() 204 if (cur_state >= UNLOCKED) { in TryReadLock() 226 if (LIKELY(cur_state == UNLOCKED)) { in TryWriteLock() 259 // Reset exclusive owner before changing state to avoid check failures if other thread sees UNLOCKED in WriteUnlock() 265 done = state_.compare_exchange_weak(cur_state, UNLOCKED, std::memory_order_seq_cst); in WriteUnlock()
|
H A D | mutex.h | 150 if (LIKELY(cur_state >= UNLOCKED)) { in ACQUIRE_SHARED() 190 if (done && new_state == UNLOCKED) { in RELEASE_SHARED() 212 static constexpr int32_t UNLOCKED = 0; variable
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | mutator_lock.cpp | 59 SetState(MutatorLockState::UNLOCKED); in Unlock() 64 return GetState() != MutatorLockState::UNLOCKED; in HasLock()
|
H A D | mutator_lock.h | 26 enum MutatorLockState { UNLOCKED, RDLOCK, WRLOCK }; enumerator
|
H A D | js_thread.h | 1625 MutatorLock::MutatorLockState mutatorLockState_ = MutatorLock::MutatorLockState::UNLOCKED;
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | locks.h | 27 enum MutatorLockState { UNLOCKED, RDLOCK, WRLOCK }; enumerator
|
H A D | thread.h | 392 MutatorLock::MutatorLockState lockState_ = MutatorLock::UNLOCKED;
|
/arkcompiler/ets_runtime/ecmascript/daemon/ |
H A D | daemon_thread.h | 107 MutatorLock::MutatorLockState mutatorLockState_ = MutatorLock::MutatorLockState::UNLOCKED;
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | locks.cpp | 98 Thread::GetCurrent()->SetLockState(UNLOCKED); in Unlock()
|
H A D | thread.cpp | 660 (GetMutatorLock()->GetState() != MutatorLock::MutatorLockState::UNLOCKED); in TestLockState()
|
Completed in 8 milliseconds