Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::sys::Runnable Class Referenceabstract

#include <elm/sys/Thread.h>

+ Inheritance diagram for elm::sys::Runnable:

Public Member Functions

virtual ~Runnable (void)
 
virtual void run (void)=0
 

Protected Member Functions

void stop (void)
 
Threadcurrent (void) const
 

Detailed Description

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.

Constructor & Destructor Documentation

elm::sys::Runnable::~Runnable ( void  )
virtual

Member Function Documentation

Thread* elm::sys::Runnable::current ( void  ) const
protected
elm::sys::Runnable::run ( void  )
pure virtual

This method must be overloaded to provide the computation to the thread.

void elm::sys::Runnable::stop ( void  )
protected

Cause the thread to stop immediatelly.

References elm::sys::Thread::stop().


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