SOLA
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
minhton::core::WatchDog Class Reference

#include <watchdog.h>

Classes

class  Impl
 

Public Member Functions

 WatchDog (const WatchDog &)=delete
 
WatchDogoperator= (const WatchDog &)=delete
 
 WatchDog (const WatchDog &&)=delete
 
WatchDogoperator= (const WatchDog &&)=delete
 
void addJob (std::function< void()> function, uint32_t milliseconds, TimeoutType &timeout_type)
 
void cancelJob (const TimeoutType &timeout_type)
 

Detailed Description

Helper class to execute functions after a given time asynchronous

Member Function Documentation

◆ addJob()

void minhton::core::WatchDog::addJob ( std::function< void()>  function,
uint32_t  milliseconds,
TimeoutType &  timeout_type 
)

Add new job to watchdog (only one job can exist at a time for now)

Parameters
functionfunction to execute
millisecondsmilliseconds until function will be executed.

The documentation for this class was generated from the following files: