client/EterLib/Mutex.h

19 lines
214 B
C++

#ifndef __INC_ETERLIB_MUTEX_H__
#define __INC_ETERLIB_MUTEX_H__
class Mutex
{
public:
Mutex();
~Mutex();
void Lock();
void Unlock();
bool Trylock();
private:
CRITICAL_SECTION lock;
};
#endif