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>
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.
SceneUtil::UnrefQueue::UnrefQueue |
( |
| ) |
|
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.
void SceneUtil::UnrefQueue::push |
( |
const osg::Object * |
obj | ) |
|
Adds an object to the list of objects to be unreferenced. Call from the main thread.
The documentation for this class was generated from the following files: