mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Wrap benaphore in tracy namespace, etc.
This commit is contained in:
parent
f85facf2af
commit
100b814069
@ -3,14 +3,16 @@
|
|||||||
// https://github.com/preshing/cpp11-on-multicore/blob/master/LICENSE
|
// https://github.com/preshing/cpp11-on-multicore/blob/master/LICENSE
|
||||||
//---------------------------------------------------------
|
//---------------------------------------------------------
|
||||||
|
|
||||||
#ifndef __CPP11OM_BENAPHORE_H__
|
#ifndef __TRACY_CPP11OM_BENAPHORE_H__
|
||||||
#define __CPP11OM_BENAPHORE_H__
|
#define __TRACY_CPP11OM_BENAPHORE_H__
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include "sema.h"
|
#include "tracy_sema.h"
|
||||||
|
|
||||||
|
namespace tracy
|
||||||
|
{
|
||||||
|
|
||||||
//---------------------------------------------------------
|
//---------------------------------------------------------
|
||||||
// NonRecursiveBenaphore
|
// NonRecursiveBenaphore
|
||||||
@ -138,5 +140,6 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif // __CPP11OM_BENAPHORE_H__
|
#endif // __CPP11OM_BENAPHORE_H__
|
||||||
|
@ -3,12 +3,14 @@
|
|||||||
// https://github.com/preshing/cpp11-on-multicore/blob/master/LICENSE
|
// https://github.com/preshing/cpp11-on-multicore/blob/master/LICENSE
|
||||||
//---------------------------------------------------------
|
//---------------------------------------------------------
|
||||||
|
|
||||||
#ifndef __CPP11OM_SEMAPHORE_H__
|
#ifndef __TRACY_CPP11OM_SEMAPHORE_H__
|
||||||
#define __CPP11OM_SEMAPHORE_H__
|
#define __TRACY_CPP11OM_SEMAPHORE_H__
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
namespace tracy
|
||||||
|
{
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
//---------------------------------------------------------
|
//---------------------------------------------------------
|
||||||
@ -221,5 +223,6 @@ public:
|
|||||||
|
|
||||||
typedef LightweightSemaphore DefaultSemaphoreType;
|
typedef LightweightSemaphore DefaultSemaphoreType;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif // __CPP11OM_SEMAPHORE_H__
|
#endif // __CPP11OM_SEMAPHORE_H__
|
||||||
|
Loading…
Reference in New Issue
Block a user