![]() |
BoB robotics
The Brains on Board robotics library
|
An abstract class allowing methods to run on the current thread or a backround thread. More...
#include <threadable.h>
Public Member Functions | |
virtual void | run () |
Run on the current thread, blocking until process ends. | |
virtual bool | isRunning () |
Check if the run() function has been called. | |
virtual void | runInBackground () |
Run the process on a background thread. | |
virtual void | stop () |
Stop the background thread. | |
Protected Member Functions | |
virtual void | runInternal ()=0 |
An abstract class allowing methods to run on the current thread or a backround thread.
A simple abstract class representing a common interface for running processes either in the foreground or background (e.g. displaying camera, handling joystick etc.).