fawkes::ThreadInitializer Class Reference

Thread initializer interface. More...

#include <core/threading/thread_initializer.h>

Inheritance diagram for fawkes::ThreadInitializer:

[legend]
List of all members.

Public Member Functions

virtual ~ThreadInitializer ()
 Virtual empty destructor.
virtual void init (Thread *thread)=0
 This method is called by the ThreadManager for each newly added Thread.

Detailed Description

Thread initializer interface.

This interface is used by the ThreadManager. The init() method is called for each added thread. If there are any special needs that have to be initialized before the thread is started on the given real classes of the thread this is the way to do it. See Fawkes main application for an example.

Author:
Tim Niemueller

Definition at line 41 of file thread_initializer.h.


Constructor & Destructor Documentation

fawkes::ThreadInitializer::~ThreadInitializer (  )  [virtual]

Virtual empty destructor.

Definition at line 74 of file thread_initializer.cpp.


Member Function Documentation

void fawkes::ThreadInitializer::init ( Thread thread  )  [pure virtual]

This method is called by the ThreadManager for each newly added Thread.

Parameters:
thread thread to initialize.
Exceptions:
CannotInitializeThread thrown if thread can for not be initialized

Implemented in fawkes::AspectIniFin.

Referenced by fawkes::ThreadList::init().


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:32:49 2011 for Fawkes API by  doxygen 1.4.7