Inheritance diagram for osg::OperationsThread:
Public Member Functions | |
| OperationsThread () | |
| void | setParent (Object *parent) |
| Object * | getParent () |
| const Object * | getParent () const |
| void | add (Operation *operation, bool waitForCompletion=false) |
| Add operation to end of OperationQueue, this will be executed by the graphics thread once this operation gets to the head of the queue. | |
| void | remove (Operation *operation) |
| Remove operation from OperationQueue. | |
| void | remove (const std::string &name) |
| Remove named operation from OperationQueue. | |
| void | removeAllOperations () |
| Remove all operations from OperationQueue. | |
| osg::ref_ptr< Operation > | getCurrentOperation () |
| Get the operation currently being run. | |
| virtual void | run () |
| Run does the graphics thread run loop. | |
| void | setDone (bool done) |
| bool | getDone () const |
| virtual int | cancel () |
| Cancel this graphics thread. | |
Protected Types | |
| typedef std::list< ref_ptr< Operation > > | OperationQueue |
Protected Member Functions | |
| virtual | ~OperationsThread () |
Protected Attributes | |
| observer_ptr< Object > | _parent |
| bool | _done |
| OpenThreads::Mutex | _operationsMutex |
| osg::ref_ptr< osg::RefBlock > | _operationsBlock |
| OperationQueue | _operations |
| osg::ref_ptr< Operation > | _currentOperation |
typedef std::list< ref_ptr<Operation> > osg::OperationsThread::OperationQueue [protected] |
| osg::OperationsThread::OperationsThread | ( | ) |
| virtual osg::OperationsThread::~OperationsThread | ( | ) | [protected, virtual] |
| void osg::OperationsThread::setParent | ( | Object * | parent | ) | [inline] |
| Object* osg::OperationsThread::getParent | ( | ) | [inline] |
| const Object* osg::OperationsThread::getParent | ( | ) | const [inline] |
| void osg::OperationsThread::add | ( | Operation * | operation, | |
| bool | waitForCompletion = false | |||
| ) |
Add operation to end of OperationQueue, this will be executed by the graphics thread once this operation gets to the head of the queue.
| void osg::OperationsThread::remove | ( | Operation * | operation | ) |
Remove operation from OperationQueue.
| void osg::OperationsThread::remove | ( | const std::string & | name | ) |
Remove named operation from OperationQueue.
| void osg::OperationsThread::removeAllOperations | ( | ) |
Remove all operations from OperationQueue.
| osg::ref_ptr<Operation> osg::OperationsThread::getCurrentOperation | ( | ) | [inline] |
Get the operation currently being run.
| virtual void osg::OperationsThread::run | ( | ) | [virtual] |
Run does the graphics thread run loop.
| void osg::OperationsThread::setDone | ( | bool | done | ) |
| bool osg::OperationsThread::getDone | ( | ) | const [inline] |
| virtual int osg::OperationsThread::cancel | ( | ) | [virtual] |
Cancel this graphics thread.
observer_ptr<Object> osg::OperationsThread::_parent [protected] |
bool osg::OperationsThread::_done [protected] |
OpenThreads::Mutex osg::OperationsThread::_operationsMutex [protected] |
OperationQueue osg::OperationsThread::_operations [protected] |