mirror of
https://github.com/google/googletest.git
synced 2025-04-07 22:40:29 +00:00
wiki change: updates the primer on gtest's thread safety.
This commit is contained in:
parent
09fa4eb3cc
commit
765cbccf86
1 changed files with 7 additions and 7 deletions
|
@ -488,10 +488,10 @@ GoogleTestAdvancedGuide, which describes many more useful Google Test features.
|
|||
|
||||
= Known Limitations =
|
||||
|
||||
Google Test is designed to be thread-safe. However, we haven't had
|
||||
time to implement the synchronization primitives on various platforms
|
||||
yet. Therefore, it is currently _unsafe_ to use Google Test
|
||||
assertions from two threads concurrently. In most tests this is not
|
||||
an issue as usually the assertions are done in the main thread. If you
|
||||
want to help, you can volunteer to implement the necessary
|
||||
synchronization primitives in `gtest-port.h`.
|
||||
Google Test is designed to be thread-safe. The implementation is
|
||||
thread-safe on systems where the `pthreads` library is available. It
|
||||
is currently _unsafe_ to use Google Test assertions from two threads
|
||||
concurrently on other systems (e.g. Windows). In most tests this is
|
||||
not an issue as usually the assertions are done in the main thread. If
|
||||
you want to help, you can volunteer to implement the necessary
|
||||
synchronization primitives in `gtest-port.h` for your platform.
|
Loading…
Add table
Reference in a new issue