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::Thread Class Referenceabstract

#include <elm/sys/Thread.h>

Public Member Functions

virtual ~Thread (void)
 
virtual void start (void)=0 throw (ThreadException)
 
virtual void join (void)=0 throw (ThreadException)
 
virtual void kill (void)=0 throw (ThreadException)
 
virtual bool isRunning (void)=0
 

Static Public Member Functions

static Threadmake (Runnable &runnable)
 

Protected Member Functions

 Thread (Runnable &runnable)
 
virtual void stop (void)=0
 

Protected Attributes

Runnable_runnable
 

Constructor & Destructor Documentation

elm::sys::Thread::~Thread ( void  )
virtual
elm::sys::Thread::Thread ( Runnable runnable)
protected

Member Function Documentation

virtual bool elm::sys::Thread::isRunning ( void  )
pure virtual
virtual void elm::sys::Thread::join ( void  )
throw (ThreadException
)
pure virtual
virtual void elm::sys::Thread::kill ( void  )
throw (ThreadException
)
pure virtual
Thread * elm::sys::Thread::make ( Runnable runnable)
static

bool Mutex::tryLock(void); If the mutex is free, acquire it. Else return immediately without blocking.

Returns
True if the mutex has been acquired, false else.
Exceptions
SystemExceptionNo more place in waiting queue. Build a new thread for the given runnable.

Referenced by elm::sys::JobScheduler::start().

virtual void elm::sys::Thread::start ( void  )
throw (ThreadException
)
pure virtual
virtual void elm::sys::Thread::stop ( void  )
protectedpure virtual

Member Data Documentation

Runnable& elm::sys::Thread::_runnable
protected

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