Skip to content

Commit 9781f54

Browse files
author
vladlosev
committed
Adds empty methods to Mutex on platforms where Google Test is not thread-safe. This will support a reentrancy fix in Google Mock.
git-svn-id: http://googletest.googlecode.com/svn/trunk@605 861a406c-534a-0410-8894-cb66d6ee9925
1 parent ee89af8 commit 9781f54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/gtest/internal/gtest-port.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,8 @@ class ThreadLocal {
14161416
class Mutex {
14171417
public:
14181418
Mutex() {}
1419+
void Lock() {}
1420+
void Unlock() {}
14191421
void AssertHeld() const {}
14201422
};
14211423

0 commit comments

Comments
 (0)