summaryrefslogtreecommitdiffstats
path: root/googlemock/g3doc/includes/g3_mock_multithreaded.md
blob: d8d9370241a362a65d62cf6484bea4d2284055df (plain)
1
2
3
4
5
6
7
8
9
### Can I use gMock in multi-threaded programs?

googletest was designed with thread-safety in mind. It uses synchronization
primitives from `google3` to be thread-safe. If you work in `google3`, you can
use gMock in multiple threads safely. If you work outside of `google3` and need
gMock to be thread-safe, please let us know.

For more details on how to use gMock with threads, read this
[recipe](#UsingThreads).
OpenPOWER on IntegriCloud