3479268e3bdf84185d6e0485cd8ef86830fe837e
[reactos.git] / reactos / drivers / network / tcpip / recmutex / recmutex.h
1 #ifndef _ROSRTL_RECMUTEX_H
2 #define _ROSRTL_RECMUTEX_H
3
4 typedef struct _RECURSIVE_MUTEX {
5 /* Lock. */
6 FAST_MUTEX Mutex;
7 /* Number of times this object was locked */
8 SIZE_T LockCount;
9 /* CurrentThread */
10 PVOID CurrentThread;
11 /* Notification event which signals that another thread can take over */
12 KEVENT StateLockedEvent;
13 } RECURSIVE_MUTEX, *PRECURSIVE_MUTEX;
14
15 extern VOID RecursiveMutexInit( PRECURSIVE_MUTEX RecMutex );
16 extern VOID RecursiveMutexEnter( PRECURSIVE_MUTEX RecMutex );
17 extern VOID RecursiveMutexLeave( PRECURSIVE_MUTEX RecMutex );
18
19 #define ASSERT_LOCKED(x)
20
21 #endif/*_ROSRTL_RECMUTEX_H*/