Class to generate objects giving timeout functionality.
More...
#include <TimeoutProvider.h>
Inheritance diagram for TimeoutProvider< TOCommand, TOSubscriber >:
Collaboration diagram for TimeoutProvider< TOCommand, TOSubscriber >:
Public Member Functions
Timeout Provide Constructor.
More...
Destructor also terminates the Timeout thread.
More...
Terminates the Timeout provider thread.
More...
void
requestTimeout (int32_t time_ms, TOSubscriber subscriber, const TOCommand &command)
void
cancelRequest (TOSubscriber subscriber, const TOCommand &command)
Removes timeout requests that belong to a subscriber and command.
More...
Protected Member Functions
Private Attributes
Detailed Description
template<class TOCommand, class TOSubscriber>
class TimeoutProvider< TOCommand, TOSubscriber >
Class to generate objects giving timeout functionality.
- Author
- Erik Eliasson
-
Werner Dittmann
Definition at line 148 of file TimeoutProvider.h.
Constructor & Destructor Documentation
template<class TOCommand , class TOSubscriber >
template<class TOCommand , class TOSubscriber >
Member Function Documentation
template<class TOCommand , class TOSubscriber >
void
TimeoutProvider< TOCommand, TOSubscriber >::cancelRequest
(
TOSubscriber
subscriber,
const TOCommand &
command
)
inline
template<class TOCommand , class TOSubscriber >
void
TimeoutProvider< TOCommand, TOSubscriber >::requestTimeout
(
int32_t
time_ms,
TOSubscriber
subscriber,
const TOCommand &
command
)
inline
Request a timeout trigger.
- Parameters
-
time_ms
Number of milli-seconds until the timeout is wanted. Note that a small additional period of time is added that depends on execution speed.
subscriber The receiver of the callback when the command has timed out. This argument must not be NULL.
command Specifies the
String command to be passed back in the callback.
Definition at line 183 of file TimeoutProvider.h.
template<class TOCommand , class TOSubscriber >
template<class TOCommand , class TOSubscriber >
Field Documentation
template<class TOCommand , class TOSubscriber >
template<class TOCommand , class TOSubscriber >
template<class TOCommand , class TOSubscriber >
The documentation for this class was generated from the following file: