| 10066 | } |
| 10067 | |
| 10068 | void Mutex::Unlock() { |
| 10069 | ThreadSafeLazyInit(); |
| 10070 | // We don't protect writing to owner_thread_id_ here, as it's the |
| 10071 | // caller's responsibility to ensure that the current thread holds the |
| 10072 | // mutex when this is called. |
| 10073 | owner_thread_id_ = 0; |
| 10074 | ::LeaveCriticalSection(critical_section_); |
| 10075 | } |
| 10076 | |
| 10077 | // Does nothing if the current thread holds the mutex. Otherwise, crashes |
| 10078 | // with high probability. |
nothing calls this directly
no outgoing calls
no test coverage detected