OpenSceneGraph  3.0.1
Public Types | Public Member Functions | Public Attributes
osgViewer::Renderer::ThreadSafeQueue Struct Reference

List of all members.

Public Types

typedef std::list
< osgUtil::SceneView * > 
SceneViewList

Public Member Functions

 ThreadSafeQueue ()
 ~ThreadSafeQueue ()
void release ()
 Release any thread waiting on the queue, even if the queue is empty.
osgUtil::SceneViewtakeFront ()
 Take a SceneView from the queue.
void add (osgUtil::SceneView *sv)
 Add a SceneView object to the back of the queue.

Public Attributes

OpenThreads::Mutex _mutex
OpenThreads::Condition _cond
SceneViewList _queue
bool _isReleased

Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

Add a SceneView object to the back of the queue.

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

Take a SceneView from the queue.

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


Member Data Documentation


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

osg logo
Generated at Mon Jun 4 2012 14:27:21 for the OpenSceneGraph by doxygen 1.8.0.