lego1: implement MxTimer + dependencies

This commit is contained in:
Thomas May
2023-06-14 01:22:42 +01:00
parent 0827ca8040
commit a925aec046
16 changed files with 296 additions and 9 deletions

14
LEGO1/mxautolocker.cpp Normal file
View 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();
}