dpp::oneshot_timer
timer.h
class cluster * class cluster* dpp::oneshot_timer::owner owner dpp::oneshot_timer::owner

Owning cluster.

timer timer dpp::oneshot_timer::th th dpp::oneshot_timer::th

Timer handle.

dpp::oneshot_timer::oneshot_timer
(class cluster *cl, uint64_t duration, timer_callback_t callback)
oneshot_timer
dpp::oneshot_timer::oneshot_timer
class cluster * cl
uint64_t duration
timer_callback_t callback

Construct a new oneshot timer object.

cl

cluster owner

duration

duration before firing

callback

callback to call on firing

dpp::oneshot_timer::~oneshot_timer
()
~oneshot_timer
dpp::oneshot_timer::~oneshot_timer

Destroy the oneshot timer object.

void void dpp::oneshot_timer::cancel () cancel dpp::oneshot_timer::cancel

Cancel the one shot timer immediately. Callback function is not called.

timer timer dpp::oneshot_timer::get_handle () get_handle dpp::oneshot_timer::get_handle

Get the handle for the created one-shot timer.

timer handle for use with stop_timer

Trigger a timed event once. The provided callback is called only once.

- dpp::oneshot_timer
  cancel
- dpp::oneshot_timer
  get_handle
- dpp::oneshot_timer
  oneshot_timer
- dpp::oneshot_timer
  owner
- dpp::oneshot_timer
  th
- dpp::oneshot_timer
  ~oneshot_timer