mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
687 B
36 lines
687 B
/*
|
|
*
|
|
* REVISIONS:
|
|
* pcy16Jul93: Added NT semaphores
|
|
* ash10Jun96: Cleaned up the class - overloaded the constructor
|
|
* and added logic to handle interprocess synchronization
|
|
*
|
|
*/
|
|
|
|
#ifndef __MUTEXNT_H
|
|
#define __MUTEXNT_H
|
|
|
|
#include <tchar.h>
|
|
#include "mutexlck.h"
|
|
|
|
_CLASSDEF( ApcMutexLock )
|
|
|
|
class ApcMutexLock : public MutexLock
|
|
{
|
|
protected:
|
|
HANDLE theSemHand;
|
|
|
|
public:
|
|
ApcMutexLock();
|
|
ApcMutexLock(PCHAR aUniqueMutexName);
|
|
~ApcMutexLock();
|
|
|
|
virtual INT GetExistingMutex(TCHAR aMutexName);
|
|
virtual INT TimedRequest(LONG aMillisecondTimeOut);
|
|
virtual INT IsHeld();
|
|
virtual INT Release();
|
|
virtual INT Wait();
|
|
};
|
|
|
|
#endif
|
|
|