mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-31 01:15:48 -04:00
42 lines
700 B
C++
42 lines
700 B
C++
// ======================================================================
|
|
//
|
|
// Mutex.h
|
|
// Copyright 2001-2002 Sony Online Entertainment
|
|
// All Rights Reserved.
|
|
//
|
|
// ======================================================================
|
|
|
|
#ifndef INCLUDED_Mutex_H
|
|
#define INCLUDED_Mutex_H
|
|
|
|
// ======================================================================
|
|
|
|
class Mutex
|
|
{
|
|
public:
|
|
|
|
static void install();
|
|
static void remove();
|
|
|
|
public:
|
|
|
|
Mutex();
|
|
~Mutex();
|
|
|
|
void enter();
|
|
void leave();
|
|
|
|
private:
|
|
|
|
Mutex(const Mutex &);
|
|
Mutex &operator =(const Mutex &);
|
|
|
|
private:
|
|
|
|
CRITICAL_SECTION m_criticalSection;
|
|
};
|
|
|
|
// ======================================================================
|
|
|
|
#endif
|