dxd - dynax driver framework  2723
cross platform open source driver development framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

dxd::spinlock::spinlock ( )
inline

standard constructor

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

standard destructor

dxd::spinlock::spinlock ( )
inline

standard constructor

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

void dxd::spinlock::__lock ( )
inlineprotected
void dxd::spinlock::__lock ( )
inlineprotected
bool dxd::spinlock::__trylock ( )
inlineprotected
void dxd::spinlock::__unlock ( )
inlineprotected
void dxd::spinlock::__unlock ( )
inlineprotected
dxd::spinlock::operator const ::KSPIN_LOCK & ( ) const
inline
dxd::spinlock::operator const ::KSPIN_LOCK * ( ) const
inline
dxd::spinlock::operator::KSPIN_LOCK & ( )
inline
dxd::spinlock::operator::KSPIN_LOCK * ( )
inline

Friends And Related Function Documentation

friend class lock< spinlock >
friend

Member Data Documentation

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 Tue May 21 2019

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.