Initial commit
This commit is contained in:
26
Torque/SDK/engine/platformX86UNIX/x86UNIXMutex.h
Normal file
26
Torque/SDK/engine/platformX86UNIX/x86UNIXMutex.h
Normal file
@@ -0,0 +1,26 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
// Copyright (C) GarageGames.com, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
#ifndef _X86UNIXMUTEX_H_
|
||||
#define _X86UNIXMUTEX_H_
|
||||
|
||||
// A process-shared mutex class, used by Platform::excludeOtherInstances()
|
||||
class ProcessMutex
|
||||
{
|
||||
public:
|
||||
ProcessMutex();
|
||||
~ProcessMutex();
|
||||
|
||||
bool acquire(const char *mutexName);
|
||||
void release();
|
||||
private:
|
||||
int mFD;
|
||||
static const int LockFileNameSize=256;
|
||||
char mLockFileName[LockFileNameSize];
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user