Cube-World-Mod-Launcher/CubeModLoader/mutex.cpp

14 lines
197 B
C++
Raw Normal View History

#include "mutex.h"
mutex::mutex(){
InitializeCriticalSection(&cs);
}
void mutex::lock(){
EnterCriticalSection(&cs);
}
void mutex::unlock(){
LeaveCriticalSection(&cs);
}