mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:53:03 +00:00
Create a branch for network fixes.
svn path=/branches/aicom-network-fixes/; revision=34994
This commit is contained in:
parent
0e213bbc00
commit
c501d8112c
18148 changed files with 0 additions and 860488 deletions
27
drivers/network/tcpip/recmutex/recmutex.h
Normal file
27
drivers/network/tcpip/recmutex/recmutex.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#ifndef _ROSRTL_RECMUTEX_H
|
||||
#define _ROSRTL_RECMUTEX_H
|
||||
|
||||
typedef struct _RECURSIVE_MUTEX {
|
||||
/* Lock. */
|
||||
FAST_MUTEX Mutex;
|
||||
/* Number of times this object was locked */
|
||||
SIZE_T LockCount;
|
||||
/* CurrentThread */
|
||||
PVOID CurrentThread;
|
||||
/* Notification event which signals that another thread can take over */
|
||||
KEVENT StateLockedEvent;
|
||||
/* IRQL from spin lock */
|
||||
KIRQL OldIrql;
|
||||
/* Is Locked */
|
||||
BOOLEAN Locked;
|
||||
/* Is reader or writer phase */
|
||||
BOOLEAN Writer;
|
||||
/* Spin lock needed for */
|
||||
KSPIN_LOCK SpinLock;
|
||||
} RECURSIVE_MUTEX, *PRECURSIVE_MUTEX;
|
||||
|
||||
extern VOID RecursiveMutexInit( PRECURSIVE_MUTEX RecMutex );
|
||||
extern SIZE_T RecursiveMutexEnter( PRECURSIVE_MUTEX RecMutex, BOOLEAN ToRead );
|
||||
extern VOID RecursiveMutexLeave( PRECURSIVE_MUTEX RecMutex );
|
||||
|
||||
#endif/*_ROSRTL_RECMUTEX_H*/
|
Loading…
Add table
Add a link
Reference in a new issue