mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-01 02:15:54 -04:00
54 lines
1.3 KiB
C++
Executable File
54 lines
1.3 KiB
C++
Executable File
// ======================================================================
|
|
//
|
|
// RecursiveMutex.cpp
|
|
//
|
|
// Copyright 2001-2002 Sony Online Entertainment
|
|
// All Rights Reserved
|
|
//
|
|
// ======================================================================
|
|
|
|
#include "sharedSynchronization/FirstSharedSynchronization.h"
|
|
#include "sharedSynchronization/RecursiveMutex.h"
|
|
|
|
// ======================================================================
|
|
|
|
void RecursiveMutex::install()
|
|
{
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void RecursiveMutex::remove()
|
|
{
|
|
}
|
|
|
|
// ======================================================================
|
|
|
|
RecursiveMutex::RecursiveMutex()
|
|
{
|
|
InitializeCriticalSection(&m_criticalSection);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
RecursiveMutex::~RecursiveMutex()
|
|
{
|
|
DeleteCriticalSection(&m_criticalSection);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void RecursiveMutex::enter()
|
|
{
|
|
EnterCriticalSection(&m_criticalSection);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void RecursiveMutex::leave()
|
|
{
|
|
LeaveCriticalSection(&m_criticalSection);
|
|
}
|
|
|
|
// ======================================================================
|