Does nothing if the current thread holds the mutex. Otherwise, crashes with high probability.
| 10077 | // Does nothing if the current thread holds the mutex. Otherwise, crashes |
| 10078 | // with high probability. |
| 10079 | void Mutex::AssertHeld() { |
| 10080 | ThreadSafeLazyInit(); |
| 10081 | GTEST_CHECK_(owner_thread_id_ == ::GetCurrentThreadId()) |
| 10082 | << "The current thread is not holding the mutex @" << this; |
| 10083 | } |
| 10084 | |
| 10085 | namespace { |
| 10086 |
no outgoing calls
no test coverage detected