eranpeer / FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
MIT License
1.24k stars 170 forks source link

Why fakeit is not thread safe? #136

Open Trafo opened 6 years ago

Trafo commented 6 years ago

Hi,

because of which limitation fakeit is not thread safe? Can we help with that?

Best regards.

olsonjosh commented 6 years ago

Seconded. This is really the only thing keeping our team from using it. The syntax was awesome and it worked great in a single thread, but all of our applications are multi-threaded and we were encountering too many issues because of it.

drearyworlds commented 6 years ago

Also interested in this. If I have time, I may try to debug our issues and see if I can contribute.

ericlemes commented 5 years ago

Hi @drearyworlds ,

I've been doing some contributions and I believe they are very welcome.

I don't understand a lot about the code, but since FakeIt uses a lot of shared state to manage the mocks internally, I guess that is the reason for not being thread-safe.