Class faabric::util::PeriodicBackgroundThread

class PeriodicBackgroundThread

Wrapper around periodic background thread that repeatedly does some arbitrary work after a given interval.

Subclassed by faabric::planner::KeepAliveThread, faabric::scheduler::SchedulerReaperThread

Public Functions

void start(int intervalSecondsIn)

Start the background thread with the given wake-up interval in seconds.

void stop()

Stop and wait for this thread to finish.

virtual void doWork() = 0
virtual void tidyUp()
inline int getIntervalSeconds()