mirror of https://github.com/lianthony/NT4.0
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.
26 lines
543 B
26 lines
543 B
// OS-independent synchronization primitive
|
|
|
|
#ifdef OS2
|
|
typedef unsigned long MUTEX;
|
|
typedef unsigned long EVENT;
|
|
#else
|
|
#error NT synchronization TBD
|
|
#endif
|
|
|
|
void MutexInit(MUTEX *);
|
|
BOOLEAN MutexLock(MUTEX *, unsigned long);
|
|
BOOLEAN MutexUnlock(MUTEX *);
|
|
|
|
void EventInit(EVENT *);
|
|
BOOLEAN EventSet(EVENT *);
|
|
BOOLEAN EventClear(EVENT *);
|
|
BOOLEAN EventWaitForClear(EVENT *, unsigned long);
|
|
|
|
BOOLEAN CriticalSectionEnter(void);
|
|
BOOLEAN CriticalSectionLeave(void);
|
|
|
|
|
|
// BUGBUG - Remove this
|
|
#ifndef INFINITE
|
|
#define INFINITE 0xFFFFFFFF
|
|
#endif
|