windows-nt/Source/XPSP1/NT/ds/netapi/svcdlls/upssvc/apcsmart/mutexnt.h

37 lines
687 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*
*
* 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