OpenSceneGraph
Public Types | Public Member Functions | Public Attributes | List of all members
osgViewer::Renderer::ThreadSafeQueue Struct Reference
Collaboration diagram for osgViewer::Renderer::ThreadSafeQueue:
Collaboration graph
[legend]

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::SceneViewtakeFront ()
 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
 

Member Function Documentation

◆ add()

void osgViewer::Renderer::ThreadSafeQueue::add ( osgUtil::SceneView sv)

Add a SceneView object to the back of the queue.

◆ release()

void osgViewer::Renderer::ThreadSafeQueue::release ( )

Release any thread waiting on the queue, even if the queue is empty.

◆ takeFront()

osgUtil::SceneView* osgViewer::Renderer::ThreadSafeQueue::takeFront ( )

Take a SceneView from the queue.

Can return 0 if release() is called when the queue is empty.


The documentation for this struct was generated from the following file: