Added sharedSynchronization library

This commit is contained in:
Anonymous
2014-01-14 00:45:55 -07:00
parent 1f331006e1
commit 9cbb2cfecb
47 changed files with 1439 additions and 0 deletions
@@ -0,0 +1,53 @@
// ======================================================================
//
// Mutex.cpp
//
// Copyright 2001-2002 Sony Online Entertainment
// All Rights Reserved
//
// ======================================================================
#include "sharedSynchronization/FirstSharedSynchronization.h"
#include "sharedSynchronization/Mutex.h"
// ======================================================================
void Mutex::install()
{
}
// ----------------------------------------------------------------------
void Mutex::remove()
{
}
// ======================================================================
Mutex::Mutex()
{
InitializeCriticalSection(&m_criticalSection);
}
// ----------------------------------------------------------------------
Mutex::~Mutex()
{
DeleteCriticalSection(&m_criticalSection);
}
// ----------------------------------------------------------------------
void Mutex::enter()
{
EnterCriticalSection(&m_criticalSection);
}
// ----------------------------------------------------------------------
void Mutex::leave()
{
LeaveCriticalSection(&m_criticalSection);
}
// ======================================================================