0

So the question is: Does std::chrono::system_clock::now() use mutex inside ? So if will run this method I will lock threads.

πάντα ῥεῖ
  • 1
  • 13
  • 116
  • 190
  • 2
    It 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

0 Answers0