Fawkes API  Fawkes Development Version
fawkes::ThreadInitializer Class Reference

Thread initializer interface. More...

#include <core/threading/thread_initializer.h>

Inheritance diagram for fawkes::ThreadInitializer:

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

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:
threadthread to initialize.
Exceptions:
CannotInitializeThreadthrown if thread can for not be initialized

Implemented in fawkes::AspectManager.

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


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