OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
SceneUtil::UnrefQueue Class Reference

Handles unreferencing of objects through the WorkQueue. Typical use scenario would be the main thread pushing objects that are no longer needed, and the background thread deleting them. More...

#include <unrefqueue.hpp>

Inheritance diagram for SceneUtil::UnrefQueue:
Collaboration diagram for SceneUtil::UnrefQueue:

Public Member Functions

 UnrefQueue ()
 
void push (const osg::Object *obj)
 Adds an object to the list of objects to be unreferenced. Call from the main thread. More...
 
void flush (SceneUtil::WorkQueue *workQueue)
 

Private Attributes

osg::ref_ptr< UnrefWorkItemmWorkItem
 

Detailed Description

Handles unreferencing of objects through the WorkQueue. Typical use scenario would be the main thread pushing objects that are no longer needed, and the background thread deleting them.

Constructor & Destructor Documentation

SceneUtil::UnrefQueue::UnrefQueue ( )

Member Function Documentation

void SceneUtil::UnrefQueue::flush ( SceneUtil::WorkQueue workQueue)

Adds a WorkItem to the given WorkQueue that will clear the list of objects in a worker thread, thus unreferencing them. Call from the main thread.

Here is the call graph for this function:

void SceneUtil::UnrefQueue::push ( const osg::Object *  obj)

Adds an object to the list of objects to be unreferenced. Call from the main thread.

Member Data Documentation

osg::ref_ptr<UnrefWorkItem> SceneUtil::UnrefQueue::mWorkItem
private

The documentation for this class was generated from the following files: