Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

util::Runnable Class Reference

#include <Runnable.h>

Inheritance diagram for util::Runnable:

util::Object util::Daemon util::Process util::Thread List of all members.

Detailed Description

The abstract base class for all parallel processable things like processes, daemon processes and threads.


Public Methods

virtual ~Runnable ()
virtual void start (void)=0 throw (RunException&)
 Start the parallel processing.


Protected Methods

virtual void run (void)=0
 Subclasses must redefine this method to include the code that constitutes the actual parallel processing.


Member Function Documentation

virtual void util::Runnable::run void    [protected, pure virtual]
 

Subclasses must redefine this method to include the code that constitutes the actual parallel processing.

When this method exists, the Runnable (thread, process or daemon) will be killed.

Implemented in ClientHandler.

virtual void util::Runnable::start void    throw (RunException&) [pure virtual]
 

Start the parallel processing.

A new thread, process or daemon is created and its run method is called.

Exceptions:
RunException  & if the parallel processing code cannot be executed

Implemented in util::Process, util::Daemon, and util::Thread.


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.