Searched refs:LockGuard (Results 1 – 7 of 7) sorted by relevance
148 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;
148 LockGuard::LockGuard(SpinLock *lock) : lck_(lock), own_lock_(false) { in LockGuard() function in mindspore::dataset::LockGuard153 LockGuard::~LockGuard() { in ~LockGuard()161 void LockGuard::Unlock() { in Unlock()166 void LockGuard::Lock() { in Lock()
55 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()
423 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…
36 std::unique_lock<std::mutex> LockGuard(QueueLock); in ThreadPool() local38 QueueCondition.wait(LockGuard, in ThreadPool()49 std::unique_lock<std::mutex> LockGuard(CompletionLock); in ThreadPool() local60 std::unique_lock<std::mutex> LockGuard(CompletionLock); in ThreadPool() local73 std::unique_lock<std::mutex> LockGuard(CompletionLock); in wait() local77 CompletionCondition.wait(LockGuard, in wait()87 std::unique_lock<std::mutex> LockGuard(QueueLock); in asyncImpl() local101 std::unique_lock<std::mutex> LockGuard(QueueLock); in ~ThreadPool() local
177 class LockGuard class180 explicit LockGuard(sw::MutexLock &mutex) : mutex(&mutex) in LockGuard() function in LockGuard185 explicit LockGuard(sw::MutexLock *mutex) : mutex(mutex) in LockGuard() function in LockGuard190 ~LockGuard() in ~LockGuard()
35 LockGuard instances_lock(instances_mutex); in Object()45 LockGuard instances_lock(instances_mutex); in ~Object()95 LockGuard instances_lock(Object::instances_mutex); in ~ObjectLeakCheck()