tildefriends/src/Mutex.h

27 lines
260 B
C
Raw Normal View History

#ifndef INCLUDED_Mutex
#define INCLUDED_Mutex
#include <uv.h>
class Mutex {
public:
Mutex();
~Mutex();
void lock();
void unlock();
private:
uv_mutex_t _mutex;
};
class Lock {
public:
Lock(Mutex& mutex);
~Lock();
private:
Mutex& _mutex;
};
#endif