BoB robotics
The Brains on Board robotics library
BoBRobotics::Threadable Class Referenceabstract

An abstract class allowing methods to run on the current thread or a backround thread. More...

#include <threadable.h>

Inheritance diagram for BoBRobotics::Threadable:
BoBRobotics::HID::JoystickBase< JAxisDummy, JButtonDummy > BoBRobotics::HID::JoystickBase< JAxisLinux, JButtonLinux > BoBRobotics::HID::JoystickBase< JAxisWindows, JButtonWindows > BoBRobotics::HID::JoystickBase< HID::JAxis, HID::JButton > BoBRobotics::HID::JoystickBase< JAxis, JButton > BoBRobotics::Net::Connection BoBRobotics::Video::Display BoBRobotics::HID::JoystickDummy BoBRobotics::HID::JoystickLinux BoBRobotics::HID::JoystickWindows BoBRobotics::Viz::JoystickKeyboard BoBRobotics::Net::Client

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
 

Detailed Description

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.).


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