thread_supervisor
Public Member Functions | Public Attributes | List of all members
tut::thread::Parameters::Restart Class Reference

Detailed Description

Restarting parameters.

Definition at line 74 of file supervisor.h.

#include <supervisor.h>

Public Member Functions

 Restart (const std::size_t attempts=0, const std::size_t sleep_ms=0)
 delay between attempts More...
 
bool isUnlimited () const
 
bool isOk (const std::size_t attempt) const
 
bool isEnabled () const
 
void wait () const
 

Public Attributes

std::size_t attempts_
 
std::size_t sleep_ms_
 0 = unlimited More...
 

Constructor & Destructor Documentation

◆ Restart()

tut::thread::Parameters::Restart::Restart ( const std::size_t  attempts = 0,
const std::size_t  sleep_ms = 0 
)
inlineexplicit

delay between attempts

Definition at line 81 of file supervisor.h.

Member Function Documentation

◆ isEnabled()

bool tut::thread::Parameters::Restart::isEnabled ( ) const
inline

Definition at line 97 of file supervisor.h.

◆ isOk()

bool tut::thread::Parameters::Restart::isOk ( const std::size_t  attempt) const
inline

Definition at line 92 of file supervisor.h.

◆ isUnlimited()

bool tut::thread::Parameters::Restart::isUnlimited ( ) const
inline

Definition at line 87 of file supervisor.h.

◆ wait()

void tut::thread::Parameters::Restart::wait ( ) const
inline

Definition at line 102 of file supervisor.h.

Member Data Documentation

◆ attempts_

std::size_t tut::thread::Parameters::Restart::attempts_

Definition at line 77 of file supervisor.h.

◆ sleep_ms_

std::size_t tut::thread::Parameters::Restart::sleep_ms_

0 = unlimited

Definition at line 78 of file supervisor.h.


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