Searched defs:Autolock (Results 1 - 1 of 1) sorted by relevance

/frameworks/native/include/utils/
H A DMutex.h61 // Manages the mutex automatically. It'll be locked when Autolock is
62 // constructed and released when Autolock goes out of scope.
63 class Autolock { class in class:android::Mutex
65 inline Autolock(Mutex& mutex) : mLock(mutex) { mLock.lock(); } function in class:android::Mutex::Autolock
66 inline Autolock(Mutex* mutex) : mLock(*mutex) { mLock.lock(); } function in class:android::Mutex::Autolock
67 inline ~Autolock() { mLock.unlock(); }
131 typedef Mutex::Autolock AutoMutex;

Completed in 89 milliseconds