OpenSceneGraph  3.4.0
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.
void reset ()
 Reset to fefault state (_isReleased = false)
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.

Reset to fefault state (_isReleased = false)

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 Tue Dec 8 2015 00:16:51 for the OpenSceneGraph by doxygen 1.7.6.1.