Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::RepeatingTask Class Referenceabstract

#include <aurore/core/task.hpp>

Inheritance diagram for aurore::RepeatingTask:
aurore::RepeatingTimer

Public Member Functions

 RepeatingTask (Time period)
 
virtual void run ()=0
 
void start ()
 
void stop ()
 

Constructor & Destructor Documentation

◆ RepeatingTask()

aurore::RepeatingTask::RepeatingTask ( Time  period)

Create a RepeatingTask with the given period in ms.

The task is guaranteed to wait for at least the given period of time between handler runs, but it can wait for slightly longer (usually less than a ms late)

Member Function Documentation

◆ run()

virtual void aurore::RepeatingTask::run ( )
pure virtual

Task handler executed repeatedly on the main thread at the given period.

◆ start()

void aurore::RepeatingTask::start ( )

Starts the task.

◆ stop()

void aurore::RepeatingTask::stop ( )

Stops the task.


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