mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-30 00:15:47 -04:00
Added sharedSynchronization library
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user