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,41 @@
// ======================================================================
//
// RecursiveMutex.h
// Copyright 2001-2002 Sony Online Entertainment
// All Rights Reserved.
//
// ======================================================================
#ifndef INCLUDED_RecursiveMutex_H
#define INCLUDED_RecursiveMutex_H
// ======================================================================
class RecursiveMutex
{
public:
static void install();
static void remove();
public:
RecursiveMutex();
~RecursiveMutex();
void enter();
void leave();
private:
RecursiveMutex(const RecursiveMutex &);
RecursiveMutex &operator =(const RecursiveMutex &);
private:
CRITICAL_SECTION m_criticalSection;
};
// ======================================================================
#endif