From 83fe024fb0fefcd7069d5d4c0611eca6bf66bd1f Mon Sep 17 00:00:00 2001 From: vladlosev Date: Mon, 24 Oct 2011 23:36:46 +0000 Subject: [PATCH] Adds empty methods to Mutex on platforms where Google Test is not thread-safe. This will support a reentrancy fix in Google Mock. --- include/gtest/internal/gtest-port.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index cb870c9e..04938929 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -1416,6 +1416,8 @@ class ThreadLocal { class Mutex { public: Mutex() {} + void Lock() {} + void Unlock() {} void AssertHeld() const {} };