Files
src-1.2/engine/shared/library/sharedSynchronization/src/win32/Mutex.h
T

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