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

14 lines
197 B
C++

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