27#ifndef _FXCALLBACKMUTEXLOCK_H_
28#define _FXCALLBACKMUTEXLOCK_H_
114 "Recursive acquire of callback lock 0x%p",
this);
125 Mx::MxEnterCriticalRegion();
150 Mx::MxLeaveCriticalRegion();
VOID CheckOwnership(VOID)
FxVerifierLock * m_Verifier
virtual void Lock(__out PKIRQL PreviousIrql)
virtual void Unlock(__in KIRQL PreviousIrql)
virtual _Must_inspect_result_ BOOLEAN IsOwner(VOID)
FxCallbackMutexLock(PFX_DRIVER_GLOBALS FxDriverGlobals)
virtual ~FxCallbackMutexLock()
virtual void Initialize(FxObject *ParentObject)
VOID Unlock(__in KIRQL PreviousIrql, __in BOOLEAN AtDpc)
_Must_inspect_result_ static __inline NTSTATUS CreateAndInitialize(__out FxVerifierLock **VerifierLock, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in FxObject *ParentObject, __in BOOLEAN UseMutex)
VOID Lock(__out PKIRQL PreviousIrql, __in BOOLEAN AtDpc)
__inline VOID AcquireUnsafe()
_Must_inspect_result_ __inline NTSTATUS Initialize()
__inline VOID ReleaseUnsafe()
static __inline MxThread MxGetCurrentThread()
DoTraceLevelMessage(pFxDriverGlobals, TRACE_LEVEL_VERBOSE, TRACINGPNP, "Enter, WDFDEVICE %p", Device)
PFX_DRIVER_GLOBALS fxDriverGlobals
#define FxVerifierBugCheck(FxDriverGlobals, Error,...)
#define _Must_inspect_result_
#define TRACE_LEVEL_FATAL
PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)