Merge pull request #1997 from gpakosz:GTEST_IS_THREADSAFE
PiperOrigin-RevId: 224054240
This commit is contained in:
commit
695cf7c962
|
@ -16,7 +16,7 @@ This repository is a merger of the formerly separate GoogleTest and
|
||||||
GoogleMock projects. These were so closely related that it makes sense to
|
GoogleMock projects. These were so closely related that it makes sense to
|
||||||
maintain and release them together.
|
maintain and release them together.
|
||||||
|
|
||||||
Please subscribe to the mailing list at googletestframework@googlegroups.com for questions, discussions, and development.
|
Please the mailing list at googletestframework@googlegroups.com for questions, discussions, and development.
|
||||||
There is also an IRC channel on [OFTC](https://webchat.oftc.net/) (irc.oftc.net) #gtest available.
|
There is also an IRC channel on [OFTC](https://webchat.oftc.net/) (irc.oftc.net) #gtest available.
|
||||||
|
|
||||||
Getting started information for **Google Test** is available in the
|
Getting started information for **Google Test** is available in the
|
||||||
|
|
|
@ -785,13 +785,17 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
|
||||||
# define GTEST_HAS_SEH 0
|
# define GTEST_HAS_SEH 0
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#define GTEST_IS_THREADSAFE \
|
|
||||||
(GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ \
|
|
||||||
|| (GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT) \
|
|
||||||
|| GTEST_HAS_PTHREAD)
|
|
||||||
|
|
||||||
#endif // GTEST_HAS_SEH
|
#endif // GTEST_HAS_SEH
|
||||||
|
|
||||||
|
#ifndef GTEST_IS_THREADSAFE
|
||||||
|
|
||||||
|
#define GTEST_IS_THREADSAFE \
|
||||||
|
(GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ || \
|
||||||
|
(GTEST_OS_WINDOWS && !GTEST_OS_WINDOWS_PHONE && !GTEST_OS_WINDOWS_RT) || \
|
||||||
|
GTEST_HAS_PTHREAD)
|
||||||
|
|
||||||
|
#endif // GTEST_IS_THREADSAFE
|
||||||
|
|
||||||
// GTEST_API_ qualifies all symbols that must be exported. The definitions below
|
// GTEST_API_ qualifies all symbols that must be exported. The definitions below
|
||||||
// are guarded by #ifndef to give embedders a chance to define GTEST_API_ in
|
// are guarded by #ifndef to give embedders a chance to define GTEST_API_ in
|
||||||
// gtest/internal/custom/gtest-port.h
|
// gtest/internal/custom/gtest-port.h
|
||||||
|
|
Loading…
Reference in New Issue
Block a user