Files
WickedEngine/WickedEngine/wiThreadSafeManager.h
T
2017-05-03 17:02:00 +02:00

25 lines
361 B
C++

#pragma once
#include "CommonInclude.h"
#include "wiSpinLock.h"
#include <mutex>
class wiThreadSafeManager
{
protected:
//mutex MUTEX;
static std::mutex STATICMUTEX;
wiSpinLock spinlock;
public:
wiThreadSafeManager();
~wiThreadSafeManager();
void LOCK();
bool TRY_LOCK();
void UNLOCK();
static void LOCK_STATIC();
static void UNLOCK_STATIC();
};