Home | History | Annotate | Download | only in src

Lines Matching refs:TryLock

45 // NOTE: by default, we have #ifdef'ed out the TryLock() method.
47 // 1) TryLock() under Windows is a bit annoying (it requires a
49 // 2) TryLock() is broken for NO_THREADS mode, at least in NDEBUG
51 // If you need TryLock(), and either these two caveats are not a
111 // lines, and change TryLock() to assert(0) or something.
149 inline bool TryLock(); // If free, Lock() and return true, else return false
195 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; }
207 bool Mutex::TryLock() { return is_safe_ ?
228 bool Mutex::TryLock() { return is_safe_ ?
251 bool Mutex::TryLock() { return is_safe_ ?