OSG
3.4.0
|
#include <OperationThread.h>
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 |
OperationThread is a helper class for running Operation within a single thread.
Definition at line 157 of file OperationThread.h.
osg::OperationThread::OperationThread | ( | ) |
|
protectedvirtual |
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.
Definition at line 194 of file OperationThread.h.
|
inline |
Definition at line 201 of file OperationThread.h.
|
inline |
Get the OperationQueue.
Definition at line 173 of file OperationThread.h.
|
inline |
Get the const OperationQueue.
Definition at line 176 of file OperationThread.h.
|
inline |
Definition at line 164 of file OperationThread.h.
|
inline |
Definition at line 166 of file OperationThread.h.
Remove operation from OperationQueue.
void osg::OperationThread::remove | ( | const std::string & | name | ) |
Remove named 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.
Definition at line 162 of file OperationThread.h.
|
protected |
Definition at line 216 of file OperationThread.h.
|
protected |
Definition at line 212 of file OperationThread.h.
|
protected |
Definition at line 215 of file OperationThread.h.
|
protected |
Definition at line 210 of file OperationThread.h.
|
protected |
Definition at line 214 of file OperationThread.h.