mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-28 23:16:15 -04:00
42 lines
790 B
C++
42 lines
790 B
C++
// ======================================================================
|
|
//
|
|
// 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
|