Home
last modified time | relevance | path

Searched refs:Mutex (Results 1 – 25 of 155) sorted by relevance

1234567

/arkcompiler/ets_runtime/ecmascript/platform/
Dmutex.h25 class PUBLIC_API Mutex {
27 explicit Mutex(bool is_init = true);
29 ~Mutex();
43 NO_COPY_SEMANTIC(Mutex);
44 NO_MOVE_SEMANTIC(Mutex);
49 class RecursiveMutex : public Mutex {
92 void Wait(Mutex *mutex);
94 bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool is_absolute = false);
105 explicit LockHolder(Mutex &mtx) : lock_(mtx) in LockHolder()
116 Mutex &lock_;
/arkcompiler/runtime_core/libpandabase/os/
Dmutex.cpp26 std::atomic_bool Mutex::no_check_for_deadlock_ = false;
32 if (!Mutex::DoNotCheckOnDeadlock()) { in FatalIfError()
43 Mutex::Mutex(bool is_init) : mutex_() in Mutex() function in panda::os::memory::Mutex
50 Mutex::~Mutex() in ~Mutex()
56 void Mutex::Init(pthread_mutexattr_t *attrs) in Init()
62 void Mutex::Lock() in Lock()
68 bool Mutex::TryLock() in TryLock()
80 void Mutex::Unlock() in Unlock()
86 RecursiveMutex::RecursiveMutex() : Mutex(false) in RecursiveMutex()
172 void ConditionVariable::Wait(Mutex *mutex) in Wait()
[all …]
Dmutex.h45 using Mutex = panda::os::unix::memory::futex::Mutex; variable
52 class CAPABILITY("mutex") Mutex {
54 explicit Mutex(bool is_init = true);
56 ~Mutex();
86 NO_COPY_SEMANTIC(Mutex);
87 NO_MOVE_SEMANTIC(Mutex);
92 class CAPABILITY("mutex") RecursiveMutex : public Mutex {
136 void Wait(Mutex *mutex);
138 bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool is_absolute = false);
/arkcompiler/runtime_core/static_core/libpandabase/os/
Dmutex.cpp26 std::atomic_bool Mutex::no_check_for_deadlock_ = false;
32 if (!Mutex::DoNotCheckOnTerminationLoop()) { in FatalIfError()
43 Mutex::Mutex(bool isInit) : mutex_() in Mutex() function in panda::os::memory::Mutex
50 Mutex::~Mutex() in ~Mutex()
56 void Mutex::Init(pthread_mutexattr_t *attrs) in Init()
62 void Mutex::Lock() in Lock()
68 bool Mutex::TryLock() in TryLock()
80 void Mutex::Unlock() in Unlock()
86 RecursiveMutex::RecursiveMutex() : Mutex(false) in RecursiveMutex()
172 void ConditionVariable::Wait(Mutex *mutex) in Wait()
[all …]
Dmutex.h45 using Mutex = ark::os::unix::memory::futex::Mutex; variable
52 class CAPABILITY("mutex") Mutex {
54 PANDA_PUBLIC_API explicit Mutex(bool is_init = true);
56 PANDA_PUBLIC_API ~Mutex();
86 NO_COPY_SEMANTIC(Mutex);
87 NO_MOVE_SEMANTIC(Mutex);
92 class CAPABILITY("mutex") RecursiveMutex : public Mutex {
136 PANDA_PUBLIC_API void Wait(Mutex *mutex);
138 …PANDA_PUBLIC_API bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool is_absolute = fal…
/arkcompiler/ets_runtime/ecmascript/platform/common/
Dmutex.cpp31 Mutex::Mutex(bool is_init) : mutex_() in Mutex() function in panda::ecmascript::Mutex
38 Mutex::~Mutex() in ~Mutex()
44 void Mutex::Init(pthread_mutexattr_t *attrs) in Init()
50 void Mutex::Lock() in Lock()
56 bool Mutex::TryLock() in TryLock()
68 void Mutex::Unlock() in Unlock()
74 RecursiveMutex::RecursiveMutex() : Mutex(false) in RecursiveMutex()
160 void ConditionVariable::Wait(Mutex *mutex) in Wait()
186 bool ConditionVariable::TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns, bool is_absolute) in TimedWait()
/arkcompiler/runtime_core/platforms/unix/libpandabase/futex/
Dmutex.h40 class CAPABILITY("mutex") Mutex {
42 Mutex();
44 ~Mutex();
114 NO_COPY_SEMANTIC(Mutex);
115 NO_MOVE_SEMANTIC(Mutex);
120 explicit Mutex(bool recursive) : Mutex() in Mutex() function
126 class CAPABILITY("mutex") RecursiveMutex : public Mutex {
128 RecursiveMutex() : Mutex(true) {} in RecursiveMutex()
280 void Wait(Mutex *mutex) NO_THREAD_SAFETY_ANALYSIS;
282 …bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool is_absolute = false) NO_THREAD_SAF…
[all …]
Dmutex.cpp71 Mutex::Mutex() in Mutex() function in panda::os::unix::memory::futex::Mutex
76 Mutex::~Mutex() in ~Mutex()
81 void Mutex::Lock() in Lock()
86 bool Mutex::TryLock() in TryLock()
91 bool Mutex::TryLockWithSpinning() in TryLockWithSpinning()
96 void Mutex::Unlock() in Unlock()
101 void Mutex::LockForOther(thread::ThreadId thread) in LockForOther()
106 void Mutex::UnlockForOther(thread::ThreadId thread) in UnlockForOther()
114 if (!Mutex::DoNotCheckOnDeadlock()) { in ~RWLock()
283 if (!Mutex::DoNotCheckOnDeadlock()) { in ~ConditionVariable()
[all …]
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/
Dmutex.h39 class CAPABILITY("mutex") Mutex {
41 PANDA_PUBLIC_API Mutex();
43 PANDA_PUBLIC_API ~Mutex();
113 NO_COPY_SEMANTIC(Mutex);
114 NO_MOVE_SEMANTIC(Mutex);
119 explicit Mutex(bool recursive) : Mutex() in Mutex() function
125 class CAPABILITY("mutex") RecursiveMutex : public Mutex {
127 RecursiveMutex() : Mutex(true) {} in RecursiveMutex()
285 PANDA_PUBLIC_API void Wait(Mutex *mutex) in Wait()
290 …PANDA_PUBLIC_API bool TimedWait(Mutex *mutex, uint64_t ms, uint64_t ns = 0, bool isAbsolute = fals…
[all …]
Dmutex.cpp70 Mutex::Mutex() in Mutex() function in ark::os::unix::memory::futex::Mutex
75 Mutex::~Mutex() in ~Mutex()
80 void Mutex::Lock() in Lock()
85 bool Mutex::TryLock() in TryLock()
90 bool Mutex::TryLockWithSpinning() in TryLockWithSpinning()
95 void Mutex::Unlock() in Unlock()
100 void Mutex::LockForOther(panda::os::thread::ThreadId thread) in LockForOther()
105 void Mutex::UnlockForOther(panda::os::thread::ThreadId thread) in UnlockForOther()
113 if (!Mutex::DoNotCheckOnTerminationLoop()) { in ~RWLock()
/arkcompiler/runtime_core/static_core/runtime/include/
Dloadable_agent.h42 …PANDA_PUBLIC_API LibraryAgent(os::memory::Mutex &mutex, PandaString libraryPath, PandaString loadC…
52 os::memory::LockHolder<os::memory::Mutex> lock_;
70 static os::memory::Mutex creationMutex; in LoadInstance()
71 os::memory::LockHolder<os::memory::Mutex> creationMutexLock(creationMutex); in LoadInstance()
87 static os::memory::Mutex uniquenessMutex; in LoadInstance()
Dlocks.h52 … static os::memory::Mutex *customTlsLock_; // NOLINT(misc-non-private-member-variables-in-classes)
58 static os::memory::Mutex *userSuspensionLock_;
/arkcompiler/runtime_core/static_core/runtime/
Dlocks.cpp30 os::memory::Mutex *Locks::customTlsLock_ = nullptr;
31 os::memory::Mutex *Locks::userSuspensionLock_ = nullptr;
36 Locks::customTlsLock_ = new os::memory::Mutex(); in Initialize()
37 Locks::userSuspensionLock_ = new os::memory::Mutex(); in Initialize()
Dmonitor_pool.h74 if (os::memory::Mutex::DoNotCheckOnTerminationLoop()) { in ~MonitorPool()
84 if (os::memory::Mutex::DoNotCheckOnTerminationLoop()) { in ~MonitorPool()
105 os::memory::Mutex poolLock_;
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dthreaded_coroutine_manager.h106 os::memory::Mutex coroSwitchLock_;
107 os::memory::Mutex waitersLock_;
108 mutable os::memory::Mutex coroListLock_;
117 os::memory::Mutex cvMutex_;
/arkcompiler/runtime_core/static_core/runtime/mem/gc/heap-space-misc/
Dcrossing_map_singleton.cpp26 os::memory::Mutex CrossingMapSingleton::mutex_; // NOLINT(fuchsia-statically-constructed-objects)
31 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in Create()
56 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in Destroy()
/arkcompiler/runtime_core/static_core/runtime/include/tooling/
Ddebug_inf.h48 static panda::os::memory::Mutex jitItemLock_;
49 static panda::os::memory::Mutex aexItemLock_;
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
Dupdate_remset_worker.h33 os::memory::Mutex *queueLock, size_t regionSize, bool updateConcurrent,
168 os::memory::Mutex updateRemsetLock_; // NOLINT(misc-non-private-member-variables-in-classes)
192 os::memory::Mutex *queueLock_ {nullptr};
197 os::memory::Mutex postBarrierBuffersLock_;
/arkcompiler/runtime_core/static_core/libpandabase/utils/
Ddfx.cpp21 os::memory::Mutex DfxController::mutex_; // NOLINT(fuchsia-statically-constructed-objects)
111 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in Initialize()
128 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in Initialize()
185 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in Destroy()
Dlogger.cpp120 os::memory::Mutex Logger::mutex_; // NOLINT(fuchsia-statically-constructed-objects)
149 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in Log()
189 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in InitializeFileLogging()
224 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in InitializeStdLogging()
247 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in InitializeDummyLogging()
267 os::memory::LockHolder<os::memory::Mutex> lock(mutex_); in Destroy()
/arkcompiler/ets_runtime/ecmascript/taskpool/
Drunner.h76 Mutex mtx_;
77 Mutex mtxPool_;
/arkcompiler/runtime_core/libpandabase/utils/
Dlogger.cpp131 os::memory::Mutex Logger::mutex; // NOLINT(fuchsia-statically-constructed-objects)
160 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Log()
200 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in InitializeFileLogging()
231 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in InitializeHiLogging()
250 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in InitializeStdLogging()
268 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in InitializeDummyLogging()
288 os::memory::LockHolder<os::memory::Mutex> lock(mutex); in Destroy()
/arkcompiler/ets_runtime/ecmascript/
Dwaiter_list.h90 explicit MutexGuard(Mutex *mutex) : mutex_(mutex), lockHolder_(*mutex) {} in MutexGuard()
101 Mutex *mutex_;
/arkcompiler/toolchain/tooling/test/utils/
Dtest_util.cpp20 os::memory::Mutex TestUtil::eventMutex_;
24 os::memory::Mutex TestUtil::suspendMutex_;
/arkcompiler/runtime_core/static_core/runtime/methodtrace/
Dtrace.h35 extern os::memory::Mutex g_traceLock;
112 os::memory::Mutex methodsLock_;
117 os::memory::Mutex threadInfoLock_;

1234567