Home
last modified time | relevance | path

Searched refs:UNLOCKED (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/
H A Dmutex.cpp138 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 Dmutex.h149 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 Dmutex.cpp142 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 Dmutex.h150 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 Dmutator_lock.cpp59 SetState(MutatorLockState::UNLOCKED); in Unlock()
64 return GetState() != MutatorLockState::UNLOCKED; in HasLock()
H A Dmutator_lock.h26 enum MutatorLockState { UNLOCKED, RDLOCK, WRLOCK }; enumerator
H A Djs_thread.h1625 MutatorLock::MutatorLockState mutatorLockState_ = MutatorLock::MutatorLockState::UNLOCKED;
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dlocks.h27 enum MutatorLockState { UNLOCKED, RDLOCK, WRLOCK }; enumerator
H A Dthread.h392 MutatorLock::MutatorLockState lockState_ = MutatorLock::UNLOCKED;
/arkcompiler/ets_runtime/ecmascript/daemon/
H A Ddaemon_thread.h107 MutatorLock::MutatorLockState mutatorLockState_ = MutatorLock::MutatorLockState::UNLOCKED;
/arkcompiler/runtime_core/static_core/runtime/
H A Dlocks.cpp98 Thread::GetCurrent()->SetLockState(UNLOCKED); in Unlock()
H A Dthread.cpp660 (GetMutatorLock()->GetState() != MutatorLock::MutatorLockState::UNLOCKED); in TestLockState()

Completed in 8 milliseconds