ReactOS 0.4.17-dev-1281-g065abb3
XhciSpinLockGuard Class Reference

#include <xhciutil.h>

Public Member Functions

 XhciSpinLockGuard (_Inout_ PKSPIN_LOCK Lock)
 
 ~XhciSpinLockGuard ()
 
 XhciSpinLockGuard (const XhciSpinLockGuard &)=delete
 
XhciSpinLockGuard & operator= (const XhciSpinLockGuard &)=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 41 of file xhciutil.h.

Constructor & Destructor Documentation

◆ XhciSpinLockGuard() [1/2]

XhciSpinLockGuard::XhciSpinLockGuard ( _Inout_ PKSPIN_LOCK  Lock)
inlineexplicit

Definition at line 45 of file xhciutil.h.

47 : m_Lock(Lock)
48 {
50 }
PKSPIN_LOCK m_Lock
Definition: xhciutil.h:61
#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

◆ ~XhciSpinLockGuard()

XhciSpinLockGuard::~XhciSpinLockGuard ( )
inline

Definition at line 52 of file xhciutil.h.

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

◆ XhciSpinLockGuard() [2/2]

XhciSpinLockGuard::XhciSpinLockGuard ( const XhciSpinLockGuard &  )
delete

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ m_Lock

PKSPIN_LOCK XhciSpinLockGuard::m_Lock
private

Definition at line 61 of file xhciutil.h.

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

◆ m_OldIrql

KIRQL XhciSpinLockGuard::m_OldIrql
private

Definition at line 62 of file xhciutil.h.

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


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