ccRTP 2.1.2
|
Provides a way to request timeouts after a number of milli seconds. More...
#include <TimeoutProvider.h>
Public Member Functions | |
TPRequest (TOSubscriber tsi, int timeoutMs, const TOCommand &command) | |
bool | happensBefore (uint64 t) |
bool | happensBefore (const TPRequest *req) |
int | getMsToTimeout () |
Number of milli seconds until timeout from when this method is called. More... | |
TOCommand | getCommand () |
TOSubscriber | getSubscriber () |
bool | operator== (const TPRequest< TOCommand, TOSubscriber > &req) |
Two timeout requests are considered equeal if they have the same subscriber AND command AND time when they occur. More... | |
Private Attributes | |
TOSubscriber | subscriber |
uint64 | when_ms |
TOCommand | command |
Provides a way to request timeouts after a number of milli seconds.
A command is associated to each timeout.
Modified to use the common c++ library functions and the STL list by Werner Dittmann.
Slightly modified to use gettimeofday directly.
NOTE: This class is only used internaly.
Definition at line 52 of file TimeoutProvider.h.
|
inline |
Definition at line 57 of file TimeoutProvider.h.
|
inline |
Definition at line 106 of file TimeoutProvider.h.
|
inline |
Number of milli seconds until timeout from when this method is called.
Definition at line 91 of file TimeoutProvider.h.
|
inline |
Definition at line 111 of file TimeoutProvider.h.
|
inline |
t | ms since Epoch |
Definition at line 71 of file TimeoutProvider.h.
|
inline |
Definition at line 83 of file TimeoutProvider.h.
|
inline |
Two timeout requests are considered equeal if they have the same subscriber AND command AND time when they occur.
If one of the time is zero then this is a wildcard and matches always.
Definition at line 122 of file TimeoutProvider.h.
|
private |
Definition at line 137 of file TimeoutProvider.h.
|
private |
Definition at line 133 of file TimeoutProvider.h.
|
private |
Definition at line 134 of file TimeoutProvider.h.