class MutexBase
Defined at line 1654 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
MutexBase and Mutex implement mutex on pthreads-based platforms.
Public Members
mutex_
bool has_owner_
pthread_t owner_
Public Methods
void Lock ()
Acquires this mutex.
Defined at line 1657 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
void Unlock ()
Releases this mutex.
Defined at line 1664 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h
void AssertHeld ()
Does nothing if the current thread holds the mutex. Otherwise, crashes
with high probability.
Defined at line 1675 of file ../../third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h