TracyMutex.hpp (374B)
1 #ifndef __TRACYMUTEX_HPP__ 2 #define __TRACYMUTEX_HPP__ 3 4 #if defined _MSC_VER 5 6 # include <shared_mutex> 7 8 namespace tracy 9 { 10 using TracyMutex = std::shared_mutex; 11 } 12 13 #elif defined __CYGWIN__ 14 15 #include "tracy_benaphore.h" 16 17 namespace tracy 18 { 19 using TracyMutex = NonRecursiveBenaphore; 20 } 21 22 #else 23 24 #include <mutex> 25 26 namespace tracy 27 { 28 using TracyMutex = std::mutex; 29 } 30 31 #endif 32 33 #endif