Lines Matching defs:MutexLock
169 // Catch the error of writing Mutex when intending MutexLock.
263 // MutexLock(mu) acquires mu when constructed and releases it when destroyed.
264 class MutexLock {
266 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); }
267 ~MutexLock() { mu_->Unlock(); }
271 MutexLock(const MutexLock&);
272 void operator=(const MutexLock&);
298 // Catch bug where variable name is omitted, e.g. MutexLock (&mu);
299 #define MutexLock(x) COMPILE_ASSERT(0, mutex_lock_decl_missing_var_name)