Lines Matching defs:TryLock
41 // NOTE: by default, we have #ifdef'ed out the TryLock() method.
43 // 1) TryLock() under Windows is a bit annoying (it requires a
45 // 2) TryLock() is broken for NO_THREADS mode, at least in NDEBUG
47 // If you need TryLock(), and either these two caveats are not a
107 // lines, and change TryLock() to assert(0) or something.
161 inline bool TryLock(); // If free, Lock() and return true, else return false
209 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
221 bool Mutex::TryLock() { return is_safe_ ?
241 bool Mutex::TryLock() { return is_safe_ ?
263 bool Mutex::TryLock() { return is_safe_ ?