Time To Live countdown timer. More...
#include <ttl_timer.h>
Public Member Functions | |
TtlTimer (const TtlTimer &)=delete | |
TtlTimer & | operator= (const TtlTimer &)=delete |
bool | GetRequested () const noexcept |
Indicate whether the service client is requested or not. More... | |
void | SetRequested (bool requested) noexcept |
Set the service requested status. More... | |
bool | GetOffered () const noexcept |
Indicate whether the service server is offered or not. More... | |
void | SetOffered (uint32_t ttl) noexcept |
Set the service offered status. More... | |
void | WaitForSignal () |
Wait for a signal from SetRequested or SetOffered. More... | |
bool | WaitForExpiration () |
Wait for the timer to expire or reset. More... | |
void | Dispose () noexcept |
Dispose the timer which causes all the waitings return immediately. More... | |
Time To Live countdown timer.
|
noexcept |
Dispose the timer which causes all the waitings return immediately.
|
noexcept |
Indicate whether the service server is offered or not.
|
noexcept |
Indicate whether the service client is requested or not.
|
noexcept |
Set the service offered status.
ttl | Received service offer entry TTL |
|
noexcept |
Set the service requested status.
requested | Service client requested status |
bool ara::com::helper::TtlTimer::WaitForExpiration | ( | ) |
Wait for the timer to expire or reset.
void ara::com::helper::TtlTimer::WaitForSignal | ( | ) |
Wait for a signal from SetRequested or SetOffered.