Home | History | Annotate | Download | only in util

Lines Matching refs:MutexLock

74   // Catch the error of writing Mutex when intending MutexLock.
148 // MutexLock(mu) acquires mu when constructed and releases it when destroyed.
149 class MutexLock {
151 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); }
152 ~MutexLock() { mu_->Unlock(); }
156 MutexLock(const MutexLock&);
157 void operator=(const MutexLock&);
183 // Catch bug where variable name is omitted, e.g. MutexLock (&mu);
184 #define MutexLock(x) COMPILE_ASSERT(0, mutex_lock_decl_missing_var_name)