OpenSceneGraph
|
Public Types | |
typedef std::list< osgUtil::SceneView * > | SceneViewList |
Public Member Functions | |
void | release () |
Release any thread waiting on the queue, even if the queue is empty. More... | |
void | reset () |
Reset to fefault state (_isReleased = false) | |
osgUtil::SceneView * | takeFront () |
Take a SceneView from the queue. More... | |
void | add (osgUtil::SceneView *sv) |
Add a SceneView object to the back of the queue. More... | |
Public Attributes | |
OpenThreads::Mutex | _mutex |
OpenThreads::Condition | _cond |
SceneViewList | _queue |
bool | _isReleased |
void osgViewer::Renderer::ThreadSafeQueue::add | ( | osgUtil::SceneView * | sv | ) |
Add a SceneView object to the back of the queue.
void osgViewer::Renderer::ThreadSafeQueue::release | ( | ) |
Release any thread waiting on the queue, even if the queue is empty.
osgUtil::SceneView* osgViewer::Renderer::ThreadSafeQueue::takeFront | ( | ) |
Take a SceneView from the queue.
Can return 0 if release() is called when the queue is empty.