Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

101 lines
1.6 KiB

/* --------------------------------------------------------------------
Microsoft OS/2 LAN Manager
Copyright(c) Microsoft Corp., 1990
-------------------------------------------------------------------- */
/* --------------------------------------------------------------------
File: mutex.hxx
Description:
This file contains the system independent mutex class. This class is used
to create mutexes for use in protecting data structures.
-------------------------------------------------------------------- */
#ifndef __MUTEX__
#define __MUTEX__
class MUTEX
{
public:
MUTEX (
IN OUT RPC_STATUS PAPI * RpcStatus
)
{
}
~MUTEX(
)
{
}
void
Request(
)
{
}
void
Clear(
)
{
}
inline void
VerifyOwned()
{
}
inline void
VerifyNotOwned()
{
}
private:
//
// C++ requires that sizeof(any object) != 0. MSVC 1.5 gives an otherwise
// zero-sized object a size of one. We want to change this to an even
// size in case the MUTEX is embedded in another object, so here is an
// unsigned short.
//
unsigned short Unused;
};
class EVENT
{
public:
EVENT (
IN OUT RPC_STATUS PAPI * RpcStatus
) {};
~EVENT() {};
void Raise() {}
void Lower() {}
int Wait(long timeOut = -1) { UNUSED(timeOut); return(0); }
};
class __far CLAIM_MUTEX {
public:
CLAIM_MUTEX(
MUTEX & ClaimedResource
)
{
}
~CLAIM_MUTEX(
)
{
}
};
#endif // __MUTEX__