OpenNet
Public Member Functions | List of all members
OpenNetK::SpinLock Class Reference

SpinLock interface. More...

#include <SpinLock.h>

Public Member Functions

void SetLock (void *aLock)
 Set the OS dependant lock instance. More...
 
void SetOSDep (OpenNetK_OSDep *aOSDep)
 Set the OS dependant function table. More...
 
void Lock ()
 Lock. More...
 
uint32_t LockFromThread ()
 Lock. More...
 
void Unlock ()
 Unlock. More...
 
void UnlockFromThread (uint32_t aFlags)
 Unlock. More...
 

Detailed Description

SpinLock interface.

Note
This class is part of the Driver Development Kit (DDK).
Kernel class - No constructor, no destructor, no virtual method

Member Function Documentation

void OpenNetK::SpinLock::Lock ( )
inline

Lock.

See also
LockFromThread, Unlock
uint32_t OpenNetK::SpinLock::LockFromThread ( )

Lock.

Returns
Value to pass to UnlockFromThread
See also
Lock, UnlockFromThread
void OpenNetK::SpinLock::SetLock ( void *  aLock)

Set the OS dependant lock instance.

Parameters
aLockThe instance
void OpenNetK::SpinLock::SetOSDep ( OpenNetK_OSDep aOSDep)

Set the OS dependant function table.

Parameters
aOSDepThe function table
void OpenNetK::SpinLock::Unlock ( )
inline

Unlock.

See also
Lock, UnlockFromThread
void OpenNetK::SpinLock::UnlockFromThread ( uint32_t  aFlags)

Unlock.

Parameters
aFlagsThe value returned by LockFromThread
See also
LockFromThread, Unlock

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