ReactOS 0.4.17-dev-1281-g065abb3
HubSpinLockGuard Class Reference

#include <hubutil.h>

Public Member Functions

 HubSpinLockGuard (_Inout_ PKSPIN_LOCK Lock)
 
 ~HubSpinLockGuard ()
 
 HubSpinLockGuard (const HubSpinLockGuard &)=delete
 
HubSpinLockGuard & operator= (const HubSpinLockGuard &)=delete
 

Private Attributes

PKSPIN_LOCK m_Lock
 
KIRQL m_OldIrql
 

Detailed Description

Holds a spin lock for the lifetime of the guard.

Definition at line 38 of file hubutil.h.

Constructor & Destructor Documentation

◆ HubSpinLockGuard() [1/2]

HubSpinLockGuard::HubSpinLockGuard ( _Inout_ PKSPIN_LOCK  Lock)
inlineexplicit

Definition at line 42 of file hubutil.h.

44 : m_Lock(Lock)
45 {
47 }
PKSPIN_LOCK m_Lock
Definition: hubutil.h:58
KIRQL m_OldIrql
Definition: hubutil.h:59
#define KeAcquireSpinLock(sl, irql)
Definition: env_spec_w32.h:609
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
Definition: wdfsync.h:127

◆ ~HubSpinLockGuard()

HubSpinLockGuard::~HubSpinLockGuard ( )
inline

Definition at line 49 of file hubutil.h.

50 {
52 }
#define KeReleaseSpinLock(sl, irql)
Definition: env_spec_w32.h:627

◆ HubSpinLockGuard() [2/2]

HubSpinLockGuard::HubSpinLockGuard ( const HubSpinLockGuard &  )
delete

Member Function Documentation

◆ operator=()

HubSpinLockGuard & HubSpinLockGuard::operator= ( const HubSpinLockGuard &  )
delete

Member Data Documentation

◆ m_Lock

PKSPIN_LOCK HubSpinLockGuard::m_Lock
private

Definition at line 58 of file hubutil.h.

Referenced by HubSpinLockGuard(), and ~HubSpinLockGuard().

◆ m_OldIrql

KIRQL HubSpinLockGuard::m_OldIrql
private

Definition at line 59 of file hubutil.h.

Referenced by HubSpinLockGuard(), and ~HubSpinLockGuard().


The documentation for this class was generated from the following file: