mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
lego1: implement MxTimer + dependencies
This commit is contained in:
14
LEGO1/mxautolocker.cpp
Normal file
14
LEGO1/mxautolocker.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "mxautolocker.h"
|
||||
|
||||
MxAutoLocker::MxAutoLocker(MxCriticalSection *critsect)
|
||||
{
|
||||
this->m_criticalSection = critsect;
|
||||
if (this->m_criticalSection != 0)
|
||||
this->m_criticalSection->Enter();
|
||||
}
|
||||
|
||||
MxAutoLocker::~MxAutoLocker()
|
||||
{
|
||||
if (this->m_criticalSection != 0)
|
||||
this->m_criticalSection->Leave();
|
||||
}
|
Reference in New Issue
Block a user