| 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 | #else |
| 14 | |
| 15 | #include <mutex> |
| 16 | |
| 17 | namespace tracy |
| 18 | { |
| 19 | using TracyMutex = std::mutex; |
| 20 | } |
| 21 | |
| 22 | #endif |
| 23 | |
| 24 | #endif |