ThreadQueue Class Reference
This class manages a thread queue, which performs tasks periodically. More...
#include <ThreadQueue.h>
Static Public Member Functions | |
| static void | addToThreadQueue (QueuedThread *thread) |
Static Private Member Functions | |
| static void | work (int time) |
Static Private Attributes | |
| static std::vector < QueuedThread * > | store |
| static bool | running = false |
Detailed Description
This class manages a thread queue, which performs tasks periodically.The ThreadQueue is used to perform asynchronous tasks by on own thread. These tasks should do their job in small units, which are executed each time, when the ThreadQueue calls the run-method of the QueuedThread -object.
When the run-method returns false, the QueuedThread -object will be deleted.
The thread used for the run-method-calls is synchronized to OpenSG and therefore changes to the SceneGraph -objects are no problem.
- Date:
- 9th of May 2007
Member Function Documentation
| void ThreadQueue::addToThreadQueue | ( | QueuedThread * | thread | ) | [static] |
This method adds an object of type QueuedThread to the ThreadQueue. The QueuedThread::run -method of this object will be called every 50 milliseconds until false is returned.
- Parameters:
-
thread Pointer to an object, which wants to enter the threadqueue.
| void ThreadQueue::work | ( | int | time | ) | [static, private] |
Member Data Documentation
bool ThreadQueue::running = false [static, private] |
std::vector< QueuedThread * > ThreadQueue::store [static, private] |
The documentation for this class was generated from the following files:
- tools/libraries/3DMenu/core/ThreadQueue.h
- tools/libraries/3DMenu/core/ThreadQueue.cpp
Generated on Wed Oct 20 16:12:01 2010 for inVRs by
1.5.8