Odyssey::ThreadedJob Class Reference

This class implements a job that will run in a new, separate thread. More...

#include <ThreadedJob.h>

Inheritance diagram for Odyssey::ThreadedJob:

Odyssey::Job Odyssey::DelegateThreadedJob List of all members.

Public Member Functions

 ThreadedJob ()
 Creates a new, empty threaded job.
void execute (const VariableMap &vars=VariableMap())
 executes the threaded job with the given variables
virtual void onRun (const Config &, const VariableMap &)
 This is the function to override to implement the job that will run in a separate thread.

Classes

class  thread_adapter

Detailed Description

This class implements a job that will run in a new, separate thread.

This class implements the Job interface. This particular implementation will execute the job inside a different thread. The user should override the onRun function instead of the usual execute when creating a threaded job.


Constructor & Destructor Documentation

Odyssey::ThreadedJob::ThreadedJob  ) 
 

Creates a new, empty threaded job.


Member Function Documentation

void Odyssey::ThreadedJob::execute const VariableMap vars = VariableMap()  ) 
 

executes the threaded job with the given variables

virtual void Odyssey::ThreadedJob::onRun const Config ,
const VariableMap
[virtual]
 

This is the function to override to implement the job that will run in a separate thread.

Reimplemented in Odyssey::DelegateThreadedJob.


The documentation for this class was generated from the following file:
Generated on Sun Jan 7 01:18:53 2007 for Odyssey Meta-Engine by  doxygen 1.4.6-NO