Process Hacker
fastlock.h File Reference

Go to the source code of this file.

Data Structures

struct  _PH_FAST_LOCK
 

Macros

#define PH_FAST_LOCK_INIT   { 0, NULL, NULL }
 
#define PhAcquireFastLockExclusive   PhfAcquireFastLockExclusive
 
#define PhAcquireFastLockShared   PhfAcquireFastLockShared
 
#define PhReleaseFastLockExclusive   PhfReleaseFastLockExclusive
 
#define PhReleaseFastLockShared   PhfReleaseFastLockShared
 
#define PhTryAcquireFastLockExclusive   PhfTryAcquireFastLockExclusive
 
#define PhTryAcquireFastLockShared   PhfTryAcquireFastLockShared
 

Typedefs

typedef struct _PH_FAST_LOCK PH_FAST_LOCK
 
typedef struct _PH_FAST_LOCKPPH_FAST_LOCK
 

Functions

PHLIBAPI VOID NTAPI PhInitializeFastLock (_Out_ PPH_FAST_LOCK FastLock)
 
PHLIBAPI VOID NTAPI PhDeleteFastLock (_Inout_ PPH_FAST_LOCK FastLock)
 
_May_raise_
_Acquires_exclusive_lock_
FastLock PHLIBAPI VOID
FASTCALL 
PhfAcquireFastLockExclusive (_Inout_ PPH_FAST_LOCK FastLock)
 
_May_raise_
_Acquires_shared_lock_
FastLock PHLIBAPI VOID
FASTCALL 
PhfAcquireFastLockShared (_Inout_ PPH_FAST_LOCK FastLock)
 
_Releases_exclusive_lock_
FastLock PHLIBAPI VOID
FASTCALL 
PhfReleaseFastLockExclusive (_Inout_ PPH_FAST_LOCK FastLock)
 
_Releases_shared_lock_
FastLock PHLIBAPI VOID
FASTCALL 
PhfReleaseFastLockShared (_Inout_ PPH_FAST_LOCK FastLock)
 
 _When_ (return!=0, _Acquires_exclusive_lock_(*FastLock)) PHLIBAPI BOOLEAN FASTCALL PhfTryAcquireFastLockExclusive(_Inout_ PPH_FAST_LOCK FastLock)
 
 _When_ (return!=0, _Acquires_shared_lock_(*FastLock)) PHLIBAPI BOOLEAN FASTCALL PhfTryAcquireFastLockShared(_Inout_ PPH_FAST_LOCK FastLock)
 

Macro Definition Documentation

#define PH_FAST_LOCK_INIT   { 0, NULL, NULL }

Definition at line 17 of file fastlock.h.

#define PhAcquireFastLockExclusive   PhfAcquireFastLockExclusive

Definition at line 33 of file fastlock.h.

#define PhAcquireFastLockShared   PhfAcquireFastLockShared

Definition at line 43 of file fastlock.h.

#define PhReleaseFastLockExclusive   PhfReleaseFastLockExclusive

Definition at line 53 of file fastlock.h.

#define PhReleaseFastLockShared   PhfReleaseFastLockShared

Definition at line 62 of file fastlock.h.

#define PhTryAcquireFastLockExclusive   PhfTryAcquireFastLockExclusive

Definition at line 71 of file fastlock.h.

#define PhTryAcquireFastLockShared   PhfTryAcquireFastLockShared

Definition at line 80 of file fastlock.h.

Typedef Documentation

typedef struct _PH_FAST_LOCK PH_FAST_LOCK
typedef struct _PH_FAST_LOCK * PPH_FAST_LOCK

Function Documentation

_When_ ( return!  = 0,
_Acquires_exclusive_lock_ *  FastLock 
)

Definition at line 210 of file queuedlock.h.

_When_ ( return!  = 0,
_Acquires_shared_lock_ *  FastLock 
)
PHLIBAPI VOID NTAPI PhDeleteFastLock ( _Inout_ PPH_FAST_LOCK  FastLock)

Definition at line 64 of file fastlock.c.

_May_raise_ _Acquires_exclusive_lock_ FastLock PHLIBAPI VOID FASTCALL PhfAcquireFastLockExclusive ( _Inout_ PPH_FAST_LOCK  FastLock)

Definition at line 112 of file fastlock.c.

_May_raise_ _Acquires_shared_lock_ FastLock PHLIBAPI VOID FASTCALL PhfAcquireFastLockShared ( _Inout_ PPH_FAST_LOCK  FastLock)

Definition at line 170 of file fastlock.c.

_Releases_exclusive_lock_ FastLock PHLIBAPI VOID FASTCALL PhfReleaseFastLockExclusive ( _Inout_ PPH_FAST_LOCK  FastLock)

Definition at line 236 of file fastlock.c.

_Releases_shared_lock_ FastLock PHLIBAPI VOID FASTCALL PhfReleaseFastLockShared ( _Inout_ PPH_FAST_LOCK  FastLock)

Definition at line 282 of file fastlock.c.

PHLIBAPI VOID NTAPI PhInitializeFastLock ( _Out_ PPH_FAST_LOCK  FastLock)

Definition at line 55 of file fastlock.c.