dxd - dynax driver framework 2.6.0d200
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::service::manager::enumerate Class Reference

#include <dx_service.h>

+ Inheritance diagram for dx::service::manager::enumerate:
+ Collaboration diagram for dx::service::manager::enumerate:

Public Types

typedef std::unique_lock< mutex_tlock_t
 
typedef std::mutex mutex_t
 
typedef ::DWORD value_t
 

Public Member Functions

virtual void callback ()
 
 catch (...)
 
 catch (...)
 
 catch (...)
 
 catch (...)
 
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
 
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
 
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
 
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
 
 catch (const std::exception &__std_exception)
 
 catch (const std::exception &__std_exception)
 
 catch (const std::exception &__std_exception)
 
 catch (const std::exception &__std_exception)
 
void commit (lock_t &&lock, const value_t &value) try
 
 dx_catchall_rethrow () void free() noexcept
 
void initialize (::SC_HANDLE handle) try
 
void initialize (::SC_HANDLE handle, ::DWORD mask) try
 
DX_PRAGMA_IGNORE_RETURN_VALUE_END operator const value_t & () try
 
 operator os_event () noexcept
 
promotedoperator++ () noexcept
 
value_t operator++ (int) noexcept
 
promotedoperator+= (const value_t &value) noexcept
 
promotedoperator-- () noexcept
 
value_t operator-- (int) noexcept
 
promotedoperator-= (const value_t &value) noexcept
 
const value_toperator-> ()
 
DX_PRAGMA_IGNORE_RETURN_VALUE_END bool operator== (const value_t &value) noexcept
 
bool operator== (promoted &promoted) noexcept
 
DX_PRAGMA_IGNORE_RETURN_VALUE_END eventreset (uint64_t count=0) override try
 
eventsignal (uint64_t count=1) override try
 
DX_PRAGMA_IGNORE_RETURN_VALUE_END uint64_t signalled () const
 
DX_PRAGMA_IGNORE_RETURN_VALUE_END eventwait (bool reset=false) override try
 
template<typename rep_t , typename period_t >
DX_PRAGMA_IGNORE_RETURN_VALUE_END bool wait (const std::chrono::duration< rep_t, period_t > &timeout, bool reset=false) try
 

Public Attributes

bool initialized
 
std::map< void *, std::function< void(const value_t &)> listen )
 
bool listening {}
 
std::function< void(lock_t &&, const value_t &, const value_t &) server )
 \ indicate the value is in transition - does not have the new value yet
 
bool transient
 \ indicate the value has been initialized
 

Static Public Attributes

static constexpr auto scope = kernel
 

Protected Member Functions

void notify () override
 

Protected Attributes

value_t value
 

Member Typedef Documentation

◆ lock_t

typedef std::unique_lock<mutex_t> dx::promoted< ::DWORD >::lock_t
inherited

◆ mutex_t

typedef std::mutex dx::promoted< ::DWORD >::mutex_t
inherited

◆ value_t

typedef ::DWORD dx::promoted< ::DWORD >::value_t
inherited

Member Function Documentation

◆ callback()

virtual void dx::event< kernel >::callback ( )
inlinevirtualinherited

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

◆ catch() [1/12]

dx::event< user >::catch ( ...)
inlineinherited

◆ catch() [2/12]

dx::promoted< ::DWORD >::catch ( ...)
inlineinherited

◆ catch() [3/12]

dx::promoted< ::DWORD >::catch ( ...)
inlineinherited

◆ catch() [4/12]

dx::promoted< ::DWORD >::catch ( ...)
inlineinherited

◆ catch() [5/12]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::event< user >::catch ( const dx::exception & __dx_exception)
inlineinherited

◆ catch() [6/12]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::promoted< ::DWORD >::catch ( const dx::exception & __dx_exception)
inlineinherited

◆ catch() [7/12]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::promoted< ::DWORD >::catch ( const dx::exception & __dx_exception)
inlineinherited

◆ catch() [8/12]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::promoted< ::DWORD >::catch ( const dx::exception & __dx_exception)
inlineinherited

◆ catch() [9/12]

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

◆ catch() [10/12]

dx::promoted< ::DWORD >::catch ( const std::exception & __std_exception)
inlineinherited

◆ catch() [11/12]

dx::promoted< ::DWORD >::catch ( const std::exception & __std_exception)
inlineinherited

◆ catch() [12/12]

dx::promoted< ::DWORD >::catch ( const std::exception & __std_exception)
inlineinherited

◆ commit()

void dx::promoted< ::DWORD >::commit ( lock_t && lock,
const value_t & value )
inlineinherited

◆ dx_catchall_rethrow()

dx::service::manager::promoted::dx_catchall_rethrow ( )
inlinenoexceptinherited

◆ initialize() [1/2]

void dx::service::manager::enumerate::initialize ( ::SC_HANDLE handle)
inline
+ Here is the call graph for this function:

◆ initialize() [2/2]

void dx::service::manager::promoted::initialize ( ::SC_HANDLE handle,
::DWORD mask )
inlineinherited
+ Here is the call graph for this function:

◆ notify()

void dx::service::manager::enumerate::notify ( )
inlineoverrideprotectedvirtual

Implements dx::service::manager::promoted.

+ Here is the call graph for this function:

◆ operator const value_t &()

DX_PRAGMA_IGNORE_RETURN_VALUE_END dx::promoted< ::DWORD >::operator const value_t & ( )
inlineinherited

◆ operator os_event()

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

◆ operator++() [1/2]

promoted & dx::promoted< ::DWORD >::operator++ ( )
inlinenoexceptinherited

◆ operator++() [2/2]

value_t dx::promoted< ::DWORD >::operator++ ( int )
inlinenoexceptinherited

◆ operator+=()

promoted & dx::promoted< ::DWORD >::operator+= ( const value_t & value)
inlinenoexceptinherited

◆ operator--() [1/2]

promoted & dx::promoted< ::DWORD >::operator-- ( )
inlinenoexceptinherited

◆ operator--() [2/2]

value_t dx::promoted< ::DWORD >::operator-- ( int )
inlinenoexceptinherited

◆ operator-=()

promoted & dx::promoted< ::DWORD >::operator-= ( const value_t & value)
inlinenoexceptinherited

◆ operator->()

const value_t & dx::promoted< ::DWORD >::operator-> ( )
inlineinherited

◆ operator==() [1/2]

DX_PRAGMA_IGNORE_RETURN_VALUE_END bool dx::promoted< ::DWORD >::operator== ( const value_t & value)
inlinenoexceptinherited

◆ operator==() [2/2]

bool dx::promoted< ::DWORD >::operator== ( promoted<::DWORD > & promoted)
inlinenoexceptinherited

◆ reset()

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

Implements dx::abstract::event.

◆ signal()

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

Implements dx::abstract::event.

◆ signalled()

DX_PRAGMA_IGNORE_RETURN_VALUE_END uint64_t dx::event< user >::signalled ( ) const
inlineinherited

◆ wait() [1/2]

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

Implements dx::abstract::event.

◆ wait() [2/2]

template<typename rep_t , typename period_t >
DX_PRAGMA_IGNORE_RETURN_VALUE_END 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

Member Data Documentation

◆ initialized

bool dx::promoted< ::DWORD >::initialized
inherited

◆ listen

std::map<void*, std::function<void(const value_t&)> dx::promoted< ::DWORD >::listen)
inherited

◆ listening

bool dx::service::manager::promoted::listening {}
inherited

◆ scope

static constexpr auto dx::event< kernel >::scope = kernel
staticconstexprinherited

◆ server

std::function<void(lock_t&&, const value_t&, const value_t&) dx::promoted< ::DWORD >::server)
inherited

\ indicate the value is in transition - does not have the new value yet

server: handle synchronous and asynchronous value updates and initialization lock: lock promoted value from access during update value: new value (if in transition) current: current value to allow discarding update and reverting to current value if update is not permitted

it needs to handle these case: not initialized and not in transition: initialze and commit the value not initialized and in transition: if dependent on external settings initialize a temporary and compare it with the new value and update the external setting if required make sure to commit the new value so listeners get notified either synchronously or asynchronously by external notification initialized and in transition: update external settings if any and make sure to commit the new value so listeners get notified either synchronously or asynchronousl by external notification

server will not be called with this state: initialized and not in transation

◆ transient

bool dx::promoted< ::DWORD >::transient
inherited

\ indicate the value has been initialized

◆ value

value_t dx::promoted< ::DWORD >::value
protectedinherited

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

(c) copyright 2009 dynamic acoustics e.U. generated on Thu Feb 19 2026

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.