Wrap benaphore in tracy namespace, etc.

This commit is contained in:
Bartosz Taudul 2017-11-15 21:42:55 +01:00
parent f85facf2af
commit 100b814069
2 changed files with 11 additions and 5 deletions

View File

@ -3,14 +3,16 @@
// https://github.com/preshing/cpp11-on-multicore/blob/master/LICENSE
//---------------------------------------------------------
#ifndef __CPP11OM_BENAPHORE_H__
#define __CPP11OM_BENAPHORE_H__
#ifndef __TRACY_CPP11OM_BENAPHORE_H__
#define __TRACY_CPP11OM_BENAPHORE_H__
#include <cassert>
#include <thread>
#include <atomic>
#include "sema.h"
#include "tracy_sema.h"
namespace tracy
{
//---------------------------------------------------------
// NonRecursiveBenaphore
@ -138,5 +140,6 @@ public:
}
};
}
#endif // __CPP11OM_BENAPHORE_H__

View File

@ -3,12 +3,14 @@
// https://github.com/preshing/cpp11-on-multicore/blob/master/LICENSE
//---------------------------------------------------------
#ifndef __CPP11OM_SEMAPHORE_H__
#define __CPP11OM_SEMAPHORE_H__
#ifndef __TRACY_CPP11OM_SEMAPHORE_H__
#define __TRACY_CPP11OM_SEMAPHORE_H__
#include <atomic>
#include <cassert>
namespace tracy
{
#if defined(_WIN32)
//---------------------------------------------------------
@ -221,5 +223,6 @@ public:
typedef LightweightSemaphore DefaultSemaphoreType;
}
#endif // __CPP11OM_SEMAPHORE_H__