ReactOS 0.4.17-dev-1281-g065abb3
SpinLockGuard Class Reference

#include <ucxutil.h>

Public Member Functions

 SpinLockGuard (_Inout_ PKSPIN_LOCK Lock)
 
 ~SpinLockGuard ()
 
 SpinLockGuard (const SpinLockGuard &)=delete
 
SpinLockGuard & operator= (const SpinLockGuard &)=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 35 of file ucxutil.h.

Constructor & Destructor Documentation

◆ SpinLockGuard() [1/2]

SpinLockGuard::SpinLockGuard ( _Inout_ PKSPIN_LOCK  Lock)
inlineexplicit

Definition at line 39 of file ucxutil.h.

41 : m_Lock(Lock)
42 {
44 }
PKSPIN_LOCK m_Lock
Definition: ucxutil.h:55
KIRQL m_OldIrql
Definition: ucxutil.h:56
#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

◆ ~SpinLockGuard()

SpinLockGuard::~SpinLockGuard ( )
inline

Definition at line 46 of file ucxutil.h.

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

◆ SpinLockGuard() [2/2]

SpinLockGuard::SpinLockGuard ( const SpinLockGuard &  )
delete

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ m_Lock

PKSPIN_LOCK SpinLockGuard::m_Lock
private

Definition at line 55 of file ucxutil.h.

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

◆ m_OldIrql

KIRQL SpinLockGuard::m_OldIrql
private

Definition at line 56 of file ucxutil.h.

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


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