Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

DoorThread Class Reference

#include <acsexmplDoorImpl.h>

Inheritance diagram for DoorThread:

Inheritance graph
[legend]
Collaboration diagram for DoorThread:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DoorThread (const ACE_CString &name, Door *door_ptr, const ACS::TimeInterval &responseTime=ThreadBase::defaultResponseTime, const ACS::TimeInterval &sleepTime=ThreadBase::defaultSleepTime)
 ~DoorThread ()
virtual void onStart ()
virtual void runLoop ()
virtual void onStop ()

Private Attributes

Doordoor_p

Constructor & Destructor Documentation

DoorThread::DoorThread const ACE_CString &  name,
Door door_ptr,
const ACS::TimeInterval responseTime = ThreadBase::defaultResponseTime,
const ACS::TimeInterval sleepTime = ThreadBase::defaultSleepTime
[inline]
 

DoorThread::~DoorThread  )  [inline]
 


Member Function Documentation

virtual void DoorThread::onStart  )  [virtual]
 

Method which is executed before the body of the thread. It is the hook method for a user that wants to do some initialization before the thread execution (thread initialization), s/he has to override/implement this method in the implementation class. It is called by commonStart

Reimplemented from ACS::Thread.

virtual void DoorThread::onStop  )  [virtual]
 

Method which is executed after the body of the thread, i.e. after the thread execution. It is the hook method for a user that wants to do some cleanup after the thread execution (thread cleanup), s/he has to override/implement this method in the implementation class. It is called by commonStop

Reimplemented from ACS::Thread.

virtual void DoorThread::runLoop  )  [virtual]
 

Basic used hook to implement the thread functionality in a periodic loop. The method is executed in a loop until the thread is alive and every #responseTime 100ns by the run method. The thread can be exited from the lop by calling ACS::ThreadBase::stop or ACS::ThreadBase::exit command. If the run method is overridden than runLoop is not executed.

Reimplemented from ACS::Thread.


Member Data Documentation

Door* DoorThread::door_p [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:36:23 2009 for ACS C++ API by doxygen 1.3.8