mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
34 lines
374 B
C++
34 lines
374 B
C++
|
#ifndef __TRACYMUTEX_HPP__
|
||
|
#define __TRACYMUTEX_HPP__
|
||
|
|
||
|
#if defined _MSC_VER
|
||
|
|
||
|
# include <shared_mutex>
|
||
|
|
||
|
namespace tracy
|
||
|
{
|
||
|
using TracyMutex = std::shared_mutex;
|
||
|
}
|
||
|
|
||
|
#elif defined __CYGWIN__
|
||
|
|
||
|
#include "tracy_benaphore.h"
|
||
|
|
||
|
namespace tracy
|
||
|
{
|
||
|
using TracyMutex = NonRecursiveBenaphore;
|
||
|
}
|
||
|
|
||
|
#else
|
||
|
|
||
|
#include <mutex>
|
||
|
|
||
|
namespace tracy
|
||
|
{
|
||
|
using TracyMutex = std::mutex;
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#endif
|