Inheritance diagram for osg::GraphicsThread:
Public Member Functions | |
GraphicsThread () | |
void | add (Operation *operation, bool waitForCompletion=false) |
void | remove (Operation *operation) |
void | remove (const std::string &name) |
void | removeAllOperations () |
osg::ref_ptr< Operation > | getCurrentOperation () |
virtual void | run () |
void | setDone (bool done) |
bool | getDone () const |
virtual int | cancel () |
Protected Types | |
typedef std::list< ref_ptr< Operation > > | OperationQueue |
Protected Member Functions | |
virtual | ~GraphicsThread () |
Protected Attributes | |
GraphicsContext * | _graphicsContext |
bool | _done |
OpenThreads::Mutex | _operationsMutex |
osg::ref_ptr< osg::Block > | _operationsBlock |
OperationQueue | _operations |
osg::ref_ptr< Operation > | _currentOperation |
Friends | |
class | GraphicsContext |
Classes | |
struct | 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. |
|
Cancel this graphics thread. |
|
Get the operation currently being run. |
|
|
|
Remove named operation from OperationQueue. |
|
Remove operation from OperationQueue. |
|
Remove all operations from OperationQueue. |
|
Run does the graphics thread run loop. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|