Lines Matching refs:Autolock
111 // Manages the mutex automatically. It'll be locked when Autolock is
112 // constructed and released when Autolock goes out of scope.
113 class SCOPED_CAPABILITY Autolock {
115 inline explicit Autolock(Mutex& mutex) ACQUIRE(mutex) : mLock(mutex) {
118 inline explicit Autolock(Mutex* mutex) ACQUIRE(mutex) : mLock(*mutex) {
121 inline ~Autolock() RELEASE() {
128 Autolock(const Autolock&);
129 Autolock& operator=(const Autolock&);
191 typedef Mutex::Autolock AutoMutex;