dxd - dynax driver framework  3211
cross platform open source driver development framework
dxd::spinlock Class Reference

WDK spinlock. More...

#include <dxd_sync_platform.h>

+ Inheritance diagram for dxd::spinlock:

Public Member Functions

 operator const ::KSPIN_LOCK & () const
 
 operator const ::KSPIN_LOCK * () const
 
 operator::KSPIN_LOCK & ()
 
 operator::KSPIN_LOCK * ()
 
 spinlock ()
 
 spinlock ()
 
virtual ~spinlock ()=default
 virtual destructur More...
 
virtual ~spinlock ()
 

Public Attributes

os_result status =not_initialized
 

Protected Member Functions

void __lock ()
 
void __lock ()
 
bool __trylock ()
 
void __unlock ()
 
void __unlock ()
 

Friends

class lock< spinlock >
 

Detailed Description

WDK spinlock.

Constructor & Destructor Documentation

◆ spinlock() [1/2]

dxd::spinlock::spinlock ( )
inline

standard constructor

◆ ~spinlock() [1/2]

virtual dxd::spinlock::~spinlock ( )
inline

standard destructor

◆ spinlock() [2/2]

dxd::spinlock::spinlock ( )
inline

standard constructor

◆ ~spinlock() [2/2]

virtual dxd::spinlock::~spinlock ( )
default

virtual destructur

spinlock base class needs virtual destructor; although its a dummy; to ensure inheritend and composite objects to be correctly destructed.

Member Function Documentation

◆ __lock() [1/2]

void dxd::spinlock::__lock ( )
inlineprotected

◆ __lock() [2/2]

void dxd::spinlock::__lock ( )
inlineprotected

◆ __trylock()

bool dxd::spinlock::__trylock ( )
inlineprotected

◆ __unlock() [1/2]

void dxd::spinlock::__unlock ( )
inlineprotected

◆ __unlock() [2/2]

void dxd::spinlock::__unlock ( )
inlineprotected

◆ operator const ::KSPIN_LOCK &()

dxd::spinlock::operator const ::KSPIN_LOCK & ( ) const
inline

◆ operator const ::KSPIN_LOCK *()

dxd::spinlock::operator const ::KSPIN_LOCK * ( ) const
inline

◆ operator::KSPIN_LOCK &()

dxd::spinlock::operator::KSPIN_LOCK & ( )
inline

◆ operator::KSPIN_LOCK *()

dxd::spinlock::operator::KSPIN_LOCK * ( )
inline

Friends And Related Function Documentation

◆ lock< spinlock >

friend class lock< spinlock >
friend

Member Data Documentation

◆ status

os_result dxd::spinlock::status =not_initialized

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

(c) copyright 2009 dynamic acoustics e.U. generated on Sat Aug 22 2020

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.