So the question is: Does std::chrono::system_clock::now() use mutex inside ? So if will run this method I will lock threads.
Asked
Active
Viewed 82 times
0
-
2It is thread-safe, yes. Whether a mutex is used is implementation-defined. – DeiDei Oct 17 '16 at 20:59
-
5@DeiDei - it's implementation-specific, but not implementation-defined. The latter is a term of art in the language definition; it requires that an implementation document its behavior. – Pete Becker Oct 17 '16 at 21:06