Searched defs:AutoLock (Results 1 – 7 of 7) sorted by relevance
87 struct AutoLock { struct in __anonc732b1eb0111::ThreadPool88 AutoLock(SkSpinlock* lock) : fLock(lock) { fLock->acquire(); } in AutoLock() argument89 ~AutoLock() { fLock->release(); } in ~AutoLock()91 SkSpinlock* fLock;
101 explicit AutoLock(Lock& lock) : lock_(lock) { in AutoLock() function105 AutoLock(Lock& lock, const AlreadyAcquired&) : lock_(lock) { in AutoLock() function
61 explicit AutoLock(Lock& lock) : lock_(lock) { in AutoLock() function
23 AutoLock(pthread_mutex_t *mutex, const char *const name) in AutoLock() function
160 struct AutoLock struct162 AutoLock(CriticalSection& _cs) : cs(&_cs) { cs->lock(); } in AutoLock() argument163 ~AutoLock() { cs->unlock(); } in ~AutoLock()164 CriticalSection* cs;
144 explicit AutoLock(T* obj) : obj_(obj) { obj_->Lock(); } in AutoLock() function
504 class CV_EXPORTS AutoLock class507 AutoLock(Mutex& m) : mutex(&m) { mutex->lock(); } in AutoLock() function in cv::AutoLock