Home
last modified time | relevance | path

Searched refs:LockGuard (Results 1 – 7 of 7) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dlock.h148 class LockGuard {
150 explicit LockGuard(SpinLock *lock);
152 ~LockGuard();
154 LockGuard(const LockGuard &) = delete;
156 LockGuard(LockGuard &&) = delete;
158 LockGuard &operator=(const LockGuard &) = delete;
160 LockGuard &operator=(LockGuard &&) = delete;
Dlock.cc148 LockGuard::LockGuard(SpinLock *lock) : lck_(lock), own_lock_(false) { in LockGuard() function in mindspore::dataset::LockGuard
153 LockGuard::~LockGuard() { in ~LockGuard()
161 void LockGuard::Unlock() { in Unlock()
166 void LockGuard::Lock() { in Lock()
Dtask_manager.cc55 LockGuard lck(&tg_lock_); in CreateAsyncTask()
80 LockGuard lck(&tg_lock_); in interrupt_all()
249 LockGuard lck(&free_lock_); in ReturnFreeTask()
262 LockGuard lck(&free_lock_); in GetFreeTask()
352 LockGuard lck(&tm.tg_lock_); in ~TaskGroup()
DREADME.md423 There is helper class LockGuard to ensure the lock is released if it is acquired.
434 Like LockGuard helper class, there are helper classes SharedLock and UniqueLock to release the lock…
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DThreadPool.cpp36 std::unique_lock<std::mutex> LockGuard(QueueLock); in ThreadPool() local
38 QueueCondition.wait(LockGuard, in ThreadPool()
49 std::unique_lock<std::mutex> LockGuard(CompletionLock); in ThreadPool() local
60 std::unique_lock<std::mutex> LockGuard(CompletionLock); in ThreadPool() local
73 std::unique_lock<std::mutex> LockGuard(CompletionLock); in wait() local
77 CompletionCondition.wait(LockGuard, in wait()
87 std::unique_lock<std::mutex> LockGuard(QueueLock); in asyncImpl() local
101 std::unique_lock<std::mutex> LockGuard(QueueLock); in ~ThreadPool() local
/third_party/skia/third_party/externals/swiftshader/src/Common/
DMutexLock.hpp177 class LockGuard class
180 explicit LockGuard(sw::MutexLock &mutex) : mutex(&mutex) in LockGuard() function in LockGuard
185 explicit LockGuard(sw::MutexLock *mutex) : mutex(mutex) in LockGuard() function in LockGuard
190 ~LockGuard() in ~LockGuard()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/common/
DObject.cpp35 LockGuard instances_lock(instances_mutex); in Object()
45 LockGuard instances_lock(instances_mutex); in ~Object()
95 LockGuard instances_lock(Object::instances_mutex); in ~ObjectLeakCheck()