#ifndef INCLUDED_Mutex #define INCLUDED_Mutex #include 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