|
openscenegraph
|
Public Types | |
| typedef std::list < osgUtil::SceneView * > | SceneViewList |
Public Member Functions | |
| ThreadSafeQueue () | |
| ~ThreadSafeQueue () | |
| void | release () |
| osgUtil::SceneView * | takeFront () |
| void | add (osgUtil::SceneView *sv) |
Public Attributes | |
| OpenThreads::Mutex | _mutex |
| OpenThreads::Condition | _cond |
| SceneViewList | _queue |
| bool | _isReleased |
| typedef std::list<osgUtil::SceneView*> osgViewer::Renderer::ThreadSafeQueue::SceneViewList |
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.
1.7.6.1