[redcode/crythread-2nd-pass] removed Cry*CriticalSection functions
Signed-off-by: AMZN-ScottR <24445312+AMZN-ScottR@users.noreply.github.com>
This commit is contained in:
@@ -364,59 +364,6 @@ void CryInterlockedAdd(volatile size_t* pVal, ptrdiff_t iAdd)
|
||||
assert((iAdd == 0) || (iAdd < 0 && v < v - (size_t)iAdd) || (iAdd > 0 && v > v - (size_t)iAdd));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void* CryCreateCriticalSection()
|
||||
{
|
||||
CRITICAL_SECTION* pCS = new CRITICAL_SECTION;
|
||||
InitializeCriticalSection(pCS);
|
||||
return pCS;
|
||||
}
|
||||
|
||||
void CryCreateCriticalSectionInplace(void* pCS)
|
||||
{
|
||||
InitializeCriticalSection((CRITICAL_SECTION*)pCS);
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CryDeleteCriticalSection(void* cs)
|
||||
{
|
||||
CRITICAL_SECTION* pCS = (CRITICAL_SECTION*)cs;
|
||||
if (pCS->LockCount >= 0)
|
||||
{
|
||||
CryFatalError("Critical Section hanging lock");
|
||||
}
|
||||
DeleteCriticalSection(pCS);
|
||||
delete pCS;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CryDeleteCriticalSectionInplace(void* cs)
|
||||
{
|
||||
CRITICAL_SECTION* pCS = (CRITICAL_SECTION*)cs;
|
||||
if (pCS->LockCount >= 0)
|
||||
{
|
||||
CryFatalError("Critical Section hanging lock");
|
||||
}
|
||||
DeleteCriticalSection(pCS);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CryEnterCriticalSection(void* cs)
|
||||
{
|
||||
EnterCriticalSection((CRITICAL_SECTION*)cs);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
bool CryTryCriticalSection(void* cs)
|
||||
{
|
||||
return TryEnterCriticalSection((CRITICAL_SECTION*)cs) != 0;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void CryLeaveCriticalSection(void* cs)
|
||||
{
|
||||
LeaveCriticalSection((CRITICAL_SECTION*)cs);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
uint32 CryGetFileAttributes(const char* lpFileName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user