Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 22 of 22) sorted by relevance

/ark/runtime_core/libpandabase/os/unix/futex/
Dmutex.cpp400 void ConditionVariable::Wait(Mutex *mutex) in Wait() argument
405 if (!mutex->IsHeld(current_tid)) { in Wait()
411 while (!mutex_ptr_.compare_exchange_weak(old_mutex, mutex, std::memory_order_relaxed)) { in Wait()
413 if (old_mutex != mutex && old_mutex != nullptr) { in Wait()
419 mutex->IncrementWaiters(); in Wait()
420 auto old_count = mutex->recursive_count_; in Wait()
421 mutex->recursive_count_ = 1; in Wait()
423 mutex->Unlock(); in Wait()
430 mutex->Lock(); in Wait()
431 mutex->recursive_count_ = old_count; in Wait()
[all …]
Dmutex.h269 void Wait(Mutex *mutex) NO_THREAD_SAFETY_ANALYSIS;
271 …bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool is_absolute = false) NO_THREAD_SAF…
/ark/runtime_core/runtime/mem/gc/
Dcrossing_map_singleton.cpp25 os::memory::Mutex CrossingMapSingleton::mutex; // NOLINT(fuchsia-statically-constructed-objects) member in panda::mem::CrossingMapSingleton
30 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Create()
55 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Destroy()
Dcrossing_map_singleton.h60 static os::memory::Mutex mutex; variable
/ark/runtime_core/libpandabase/os/unix/
Dmutex.cpp166 void ConditionVariable::Wait(Mutex *mutex) in Wait() argument
168 int rc = pthread_cond_wait(&cond_, &mutex->mutex_); in Wait()
189 bool ConditionVariable::TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns, bool is_absolute /* = fal… in TimedWait() argument
192 int rc = pthread_cond_timedwait(&cond_, &mutex->mutex_, &abs_time); in TimedWait()
Dmutex.h95 void Wait(Mutex *mutex);
97 bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool is_absolute = false);
/ark/runtime_core/runtime/tests/
Dmultithreaded_intern_string_table_test.cpp80 std::unique_lock<std::mutex> lk(pre_lock_); in PreCheck()
105 std::unique_lock<std::mutex> lk(post_lock_); in PostFree()
131 std::mutex pre_lock_;
134 std::mutex post_lock_;
Dmem_stats_test.cpp355 …rConcurrency(MemStatsDefault &stats, std::condition_variable &ready_to_start, std::mutex &cv_mutex, in FillMemStatsForConcurrency()
359 std::unique_lock<std::mutex> lock_for_ready_to_start(cv_mutex); in FillMemStatsForConcurrency()
403 std::mutex cv_mutex; in TEST_F()
/ark/runtime_core/libpandabase/utils/
Ddfx.cpp21 os::memory::Mutex DfxController::mutex; // NOLINT(fuchsia-statically-constructed-objects) member in panda::DfxController
113 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Initialize()
131 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Initialize()
186 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Destroy()
Dlogger.cpp32 os::memory::Mutex Logger::mutex; // NOLINT(fuchsia-statically-constructed-objects) member in panda::Logger
87 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Log()
139 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in InitializeFileLogging()
172 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in InitializeStdLogging()
196 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in InitializeDummyLogging()
217 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Destroy()
Ddfx.h96 static os::memory::Mutex mutex; variable
Dlogger.h308 static os::memory::Mutex mutex; variable
/ark/js_runtime/ecmascript/tooling/
Dprotocol_handler.cpp36 std::unique_lock<std::mutex> queueLock(requestLock_); in DispatchCommand()
47 std::unique_lock<std::mutex> queueLock(requestLock_); in GetDispatchStatus()
59 std::unique_lock<std::mutex> queueLock(requestLock_); in ProcessCommand()
Dprotocol_handler.h62 std::mutex requestLock_;
/ark/runtime_core/libpandabase/
DBUILD.gn49 "$ark_root/libpandabase/os/unix/mutex.cpp",
100 "$ark_root/libpandabase/os/unix/futex/mutex.cpp",
105 libarkbase_sources += [ "$ark_root/libpandabase/os/unix/mutex.cpp" ]
DCMakeLists.txt60 ${PANDA_ROOT}/libpandabase/os/unix/futex/mutex.cpp
64 ${PANDA_ROOT}/libpandabase/os/unix/mutex.cpp
80 ${PANDA_ROOT}/libpandabase/os/unix/mutex.cpp
/ark/runtime_core/runtime/include/
Druntime.h99 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in GetCurrentSync()
371 static os::memory::Mutex mutex; variable
/ark/runtime_core/cmake/toolchain/
Dcross-clang-9-x86_64-w64-mingw32-static.cmake24 # std::thread and std::mutex. Use "posix" instead.
Dcross-clang-8-x86_64-w64-mingw32-static.cmake24 # std::thread and std::mutex. Use "posix" instead.
/ark/runtime_core/runtime/
Druntime.cpp78 os::memory::Mutex Runtime::mutex; // NOLINT(fuchsia-statically-constructed-objects) member in panda::Runtime
211 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in CreateInstance()
271 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in DestroyUnderLockHolder()
/ark/runtime_core/libpandabase/events/
Devents_gen.h.erb22 #include "os/mutex.h"
/ark/js_runtime/ecmascript/napi/
Djsnapi.cpp115 static os::memory::Mutex mutex; variable
165 os::memory::LockHolder lock(mutex); in CreateJSVM()
189 os::memory::LockHolder lock(mutex); in DestroyJSVM()