QueuedThread Class Reference
This is the abstract base class for asynchronous tasks. More...
#include <ThreadQueue.h>
Inherited by AnimatedPressed::AnimatedPressed::AnimationThread, FadedVisibility::FadedVisibility::FadeThread, and Spinning::Spinning::SpinningThread.
Public Member Functions | |
| virtual bool | run (int time)=0 |
| virtual | ~QueuedThread () |
Detailed Description
This is the abstract base class for asynchronous tasks.The aim of this class is providing CPU-time periodically without interfering the other parts of the program. This is usefull for animating widgets.
The animation has to use this class as superclass, which allows registering such object at the ThreadQueue -class. The ThreadQueue -class will call the run( int time )-method periodically.
- Date:
- 9th of May 2007
Constructor & Destructor Documentation
| virtual QueuedThread::~QueuedThread | ( | ) | [inline, virtual] |
There is nothing to clean up in an abstract class ...
Member Function Documentation
| virtual bool QueuedThread::run | ( | int | time | ) | [pure virtual] |
This method will be called by the ThreadQueue -class, if this object has been registered using ThreadQueue::addToThreadQueue( QueuedThread *t ).
This method is abstract. Overwrite it and perform tasks periodically.
- Parameters:
-
time This is a timestamp measured in milliseconds.
- Returns:
- Return true, if this method should be called again by the ThreadQueue -class. If you return false, this object will be deleted.
Implemented in AnimatedPressed::AnimatedPressed::AnimationThread, FadedVisibility::FadedVisibility::FadeThread, and Spinning::Spinning::SpinningThread.
The documentation for this class was generated from the following file:
- tools/libraries/3DMenu/core/ThreadQueue.h
Generated on Wed Oct 20 16:11:59 2010 for inVRs by
1.5.8