#include <dx_service.h>
◆ lock_t
◆ mutex_t
◆ value_t
◆ callback()
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.
◆ commit()
◆ free()
| void dx::service::manager::promoted::free |
( |
| ) |
|
|
inlinevirtualnoexceptinherited |
◆ initialize() [1/3]
|
|
inlineoverridevirtualinherited |
◆ initialize() [2/3]
|
|
inlineoverridevirtualinherited |
◆ initialize() [3/3]
| void dx::service::manager::promoted::initialize |
( |
::SC_HANDLE | handle, |
|
|
::DWORD | mask ) |
|
inlineinherited |
◆ notify()
| void dx::service::manager::status::notify |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ operator const os_event()
template<
::HANDLE invalid_t = INVALID_HANDLE_VALUE>
◆ operator const value_t &()
◆ operator os_event()
◆ operator++() [1/2]
◆ operator++() [2/2]
◆ operator+=()
◆ operator--() [1/2]
◆ operator--() [2/2]
◆ operator-=()
◆ operator->()
◆ operator::HANDLE()
template<::HANDLE invalid_t = INVALID_HANDLE_VALUE>
◆ operator==() [1/2]
◆ operator==() [2/2]
◆ reset()
|
|
inlineoverridevirtualinherited |
◆ signal()
|
|
inlineoverridevirtualinherited |
◆ signalled()
◆ wait() [1/3]
◆ wait() [2/3]
|
|
inlineoverridevirtualinherited |
◆ wait() [3/3]
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
◆ handle
template<
::HANDLE invalid_t = INVALID_HANDLE_VALUE>
◆ initialized
◆ listen
◆ listening
| bool dx::service::manager::promoted::listening {} |
|
inherited |
◆ manager
| manager& dx::service::manager::promoted::manager |
|
protectedinherited |
◆ process
template<
::HANDLE invalid_t = INVALID_HANDLE_VALUE>
◆ scope
◆ server
\ 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
for synchronous operation: move lock to commit for asynchronous operation: store lock and at asynchronous response restore and move lock to commit
◆ transient
\ indicate the value has been initialized
◆ value
The documentation for this class was generated from the following file: