Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/sys/Thread.h>
Public Member Functions | |
virtual | ~Runnable (void) |
virtual void | run (void)=0 |
Protected Member Functions | |
void | stop (void) |
Thread * | current (void) const |
A runnable must of the parent of any class representing a computation performed in a thread.
The user must overload the run() method in order to provided the computation of the thread and may use the stop() method to stop the thread.
Whatever, the end of run method stop also the thread.
|
virtual |
|
protected |
|
pure virtual |
This method must be overloaded to provide the computation to the thread.
|
protected |
Cause the thread to stop immediatelly.
References elm::sys::Thread::stop().