openscenegraph
|
#include <OperationThread>
Protected Member Functions | |
virtual | ~OperationThread () |
![]() | |
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 |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
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 OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
![]() | |
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.
|
inline |
|
inline |
Get the OperationQueue.
|
inline |
Get the const OperationQueue.
|
inline |
|
inline |
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.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |