BazisLib::DDK::KSpinLock Class Reference

Represents a spin lock. See KeInitializeSpinLock() for details. More...

#include <ksync.h>

List of all members.

Public Member Functions

 KSpinLock ()
 ~KSpinLock ()
bool Valid ()
void Lock ()
void Unlock ()

Private Attributes

PKSPIN_LOCK m_pSpinLock
KIRQL m_OwnerIrql
bool m_bHeld


Detailed Description

Represents a spin lock. See KeInitializeSpinLock() for details.

This class represents a spin lock. See KeInitializeSpinLock() for details. A spin lock is, in fact, a very fast mutex-like synchronization object that has several restrictions: 1. When a spin lock is held, DO NOT call any routines that may cause your thread to start waiting. 2. Avoid performing complex operations that require much time when a spin lock is held.


Constructor & Destructor Documentation

BazisLib::DDK::KSpinLock::KSpinLock (  )  [inline]

BazisLib::DDK::KSpinLock::~KSpinLock (  )  [inline]


Member Function Documentation

void BazisLib::DDK::KSpinLock::Lock (  )  [inline]

Here is the call graph for this function:

void BazisLib::DDK::KSpinLock::Unlock (  )  [inline]

Here is the call graph for this function:

bool BazisLib::DDK::KSpinLock::Valid (  )  [inline]


Member Data Documentation


The documentation for this class was generated from the following file:
SourceForge.net Logo