|
openscenegraph
|
#include <OperationThread>
Protected Member Functions | |
| virtual | ~OperationThread () |
| Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| observer_ptr< Object > | _parent |
| OpenThreads::Atomic | _done |
| OpenThreads::Mutex | _threadMutex |
| osg::ref_ptr< OperationQueue > | _operationQueue |
| osg::ref_ptr< Operation > | _currentOperation |
| Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
| Public Types inherited from OpenThreads::Thread | |
| enum | ThreadPriority { THREAD_PRIORITY_MAX , THREAD_PRIORITY_HIGH , THREAD_PRIORITY_NOMINAL , THREAD_PRIORITY_LOW , THREAD_PRIORITY_MIN , THREAD_PRIORITY_DEFAULT } |
| enum | ThreadPolicy { THREAD_SCHEDULE_FIFO , THREAD_SCHEDULE_ROUND_ROBIN , THREAD_SCHEDULE_TIME_SHARE , THREAD_SCHEDULE_DEFAULT } |
| Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
| Static Public Member Functions inherited from OpenThreads::Thread | |
| static int | SetConcurrency (int concurrencyLevel) |
| static int | GetConcurrency () |
| static Thread * | CurrentThread () |
| static size_t | CurrentThreadId () |
| static void | Init () |
| static int | YieldCurrentThread () |
| static ThreadPriority | GetMasterPriority () |
| static int | microSleep (unsigned int microsec) |
OperationThread is a helper class for running Operation within a single thread.
| osg::OperationThread::OperationThread | ( | ) |
|
protectedvirtual |
| void osg::OperationThread::add | ( | Operation * | operation | ) |
Add operation to end of OperationQueue, this will be executed by the graphics thread once this operation gets to the head of the queue.
|
virtual |
Cancel this graphics thread.
Reimplemented from OpenThreads::Thread.
|
inline |
Get the operation currently being run.
References _currentOperation.
|
inline |
References _done.
|
inline |
Get the OperationQueue.
References _operationQueue.
|
inline |
Get the const OperationQueue.
References _operationQueue.
| void osg::OperationThread::remove | ( | const std::string & | name | ) |
Remove named operation from OperationQueue.
| void osg::OperationThread::remove | ( | Operation * | operation | ) |
Remove operation from OperationQueue.
| void osg::OperationThread::removeAllOperations | ( | ) |
Remove all operations from OperationQueue.
|
virtual |
Run does the opertion thread run loop.
Implements OpenThreads::Thread.
Reimplemented in osg::GraphicsThread.
| void osg::OperationThread::setDone | ( | bool | done | ) |
| void osg::OperationThread::setOperationQueue | ( | OperationQueue * | opq | ) |
Set the OperationQueue.
|
protected |
Referenced by getCurrentOperation().
|
protected |
Referenced by getDone().
|
protected |
Referenced by getOperationQueue(), and getOperationQueue().
|
protected |
Referenced by getParent(), getParent(), and setParent().
|
protected |