dxd - dynax driver framework 2.1.0d58
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::event< kernel > Class Reference

kernel triggerable user space event More...

#include <dx_sync.h>

+ Inheritance diagram for dx::event< kernel >:
+ Collaboration diagram for dx::event< kernel >:

Public Member Functions

 catch (std::system_error &exception)
 
 catch (std::system_error &exception)
 
 catch (std::system_error &exception)
 
 catch (std::system_error &exception)
 
virtual void launch ()
 
 operator os_event () noexcept
 
eventreset (uint64_t count=0) try
 
eventsignal (uint64_t count=1) try
 
eventwait (bool reset=false) try
 
template<typename rep_t , typename period_t >
bool wait (const std::chrono::duration< rep_t, period_t > &timeout, bool reset=false) try
 
virtual ~event ()=default
 

Detailed Description

kernel triggerable user space event

Constructor & Destructor Documentation

◆ ~event()

virtual dx::event< kernel >::~event ( )
virtualdefault

Member Function Documentation

◆ catch() [1/4]

dx::event< user >::catch ( std::system_error & exception)
inlineinherited

◆ catch() [2/4]

dx::event< user >::catch ( std::system_error & exception)
inlineinherited

◆ catch() [3/4]

dx::event< user >::catch ( std::system_error & exception)
inlineinherited

◆ catch() [4/4]

dx::event< user >::catch ( std::system_error & exception)
inlineinherited

◆ launch()

virtual void dx::event< kernel >::launch ( )
inlinevirtual

The default implementation is based on event<user> which is signalled when triggered via launch() from kernel. This is to achieve compatibility with Windows events. Its probably more adequate to overwrite launch() and do the work here if feasible.

◆ operator os_event()

dx::event< kernel >::operator os_event ( )
inlinenoexcept

◆ reset()

event & dx::event< user >::reset ( uint64_t count = 0)
inlineinherited

◆ signal()

event & dx::event< user >::signal ( uint64_t count = 1)
inlineinherited

◆ wait() [1/2]

event & dx::event< user >::wait ( bool reset = false)
inlineinherited

◆ wait() [2/2]

template<typename rep_t , typename period_t >
bool dx::event< user >::wait ( const std::chrono::duration< rep_t, period_t > & timeout,
bool reset = false )
inlineinherited

wait with duration timeout returns true: signalled false: timed out


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

(c) copyright 2009 dynamic acoustics e.U. generated on Sat Apr 27 2024

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.