Searched defs:Autolock (Results 1 - 1 of 1) sorted by relevance
/system/core/include/utils/ | ||
H A D | Mutex.h | 72 // Manages the mutex automatically. It'll be locked when Autolock is 73 // constructed and released when Autolock goes out of scope. 74 class Autolock { class in class:android::Mutex 76 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } function in class:android::Mutex::Autolock 77 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } function in class:android::Mutex::Autolock 78 inline ~Autolock() { mLock.unlock(); } 151 typedef Mutex::Autolock AutoMutex; |
Completed in 54 milliseconds