2020-12-15 09:27:44 -04:00
|
|
|
// Copyright 2011-2020 Molecular Matters GmbH, all rights reserved.
|
2019-03-05 18:49:25 -05:00
|
|
|
|
2020-12-15 09:27:44 -04:00
|
|
|
// BEGIN EPIC MOD
|
|
|
|
|
//#include PCH_INCLUDE
|
|
|
|
|
// END EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
#include "LC_CriticalSection.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CriticalSection::CriticalSection(void)
|
|
|
|
|
{
|
2020-12-15 09:27:44 -04:00
|
|
|
// BEGIN EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
Windows::InitializeCriticalSection(&m_cs);
|
2020-12-15 09:27:44 -04:00
|
|
|
// END EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CriticalSection::~CriticalSection(void)
|
|
|
|
|
{
|
2020-12-15 09:27:44 -04:00
|
|
|
// BEGIN EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
Windows::DeleteCriticalSection(&m_cs);
|
2020-12-15 09:27:44 -04:00
|
|
|
// END EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CriticalSection::Enter(void)
|
|
|
|
|
{
|
2020-12-15 09:27:44 -04:00
|
|
|
// BEGIN EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
Windows::EnterCriticalSection(&m_cs);
|
2020-12-15 09:27:44 -04:00
|
|
|
// END EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CriticalSection::Leave(void)
|
|
|
|
|
{
|
2020-12-15 09:27:44 -04:00
|
|
|
// BEGIN EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
Windows::LeaveCriticalSection(&m_cs);
|
2020-12-15 09:27:44 -04:00
|
|
|
// END EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
}
|