| 44 | } |
| 45 | |
| 46 | Mutex::Guard Mutex::TryLock() { |
| 47 | DCHECK_NE(impl_, nullptr); |
| 48 | if (impl_->mutex_.try_lock()) { |
| 49 | return Guard{this}; |
| 50 | } |
| 51 | return Guard{}; |
| 52 | } |
| 53 | |
| 54 | Mutex::Guard Mutex::Lock() { |
| 55 | DCHECK_NE(impl_, nullptr); |
nothing calls this directly
no outgoing calls
no test coverage detected