Class to generate objects giving timeout functionality.
More...
#include <TimeoutProvider.h>
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.
template<class TOCommand , class TOSubscriber >
template<class TOCommand , class TOSubscriber >
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 >
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: