TracyMutex.hpp 255 B

123456789101112131415161718192021222324
  1. #ifndef __TRACYMUTEX_HPP__
  2. #define __TRACYMUTEX_HPP__
  3. #if defined _MSC_VER
  4. # include <shared_mutex>
  5. namespace tracy
  6. {
  7. using TracyMutex = std::shared_mutex;
  8. }
  9. #else
  10. #include <mutex>
  11. namespace tracy
  12. {
  13. using TracyMutex = std::mutex;
  14. }
  15. #endif
  16. #endif