OSG
3.4.0
|
#include <OperationThread.h>
Public Types | |
typedef std::set < OperationThread * > | OperationThreads |
Protected Types | |
typedef std::list < osg::ref_ptr< Operation > > | Operations |
Protected Member Functions | |
virtual | ~OperationQueue () |
void | addOperationThread (OperationThread *thread) |
void | removeOperationThread (OperationThread *thread) |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
OpenThreads::Mutex | _operationsMutex |
osg::ref_ptr< osg::RefBlock > | _operationsBlock |
Operations | _operations |
Operations::iterator | _currentOperationIterator |
OperationThreads | _operationThreads |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Friends | |
class | OperationThread |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
Definition at line 94 of file OperationThread.h.
|
protected |
Definition at line 146 of file OperationThread.h.
typedef std::set<OperationThread*> osg::OperationQueue::OperationThreads |
Definition at line 132 of file OperationThread.h.
osg::OperationQueue::OperationQueue | ( | ) |
|
protectedvirtual |
Add operation to end of OperationQueue, this will be executed by the operation thread once this operation gets to the head of the queue.
|
protected |
bool osg::OperationQueue::empty | ( | ) |
Return true if the operation queue is empty.
osg::ref_ptr<Operation> osg::OperationQueue::getNextOperation | ( | bool | blockIfEmpty = false | ) |
Get the next operation from the operation queue. Return null ref_ptr<> if no operations are left in queue.
unsigned int osg::OperationQueue::getNumOperationsInQueue | ( | ) |
Return the num of pending operations that are sitting in the OperationQueue.
|
inline |
Get the set of OperationThreads that are sharing this OperationQueue.
Definition at line 135 of file OperationThread.h.
void osg::OperationQueue::releaseAllOperations | ( | ) |
Call release on all operations.
void osg::OperationQueue::releaseOperationsBlock | ( | ) |
Release operations block that is used to block threads that are waiting on an empty operations queue.
Remove operation from OperationQueue.
void osg::OperationQueue::remove | ( | const std::string & | name | ) |
Remove named operation from OperationQueue.
void osg::OperationQueue::removeAllOperations | ( | ) |
Remove all operations from OperationQueue.
|
protected |
|
friend |
Definition at line 141 of file OperationThread.h.
|
protected |
Definition at line 151 of file OperationThread.h.
|
protected |
Definition at line 150 of file OperationThread.h.
|
protected |
Definition at line 149 of file OperationThread.h.
|
protected |
Definition at line 148 of file OperationThread.h.
|
protected |
Definition at line 153 of file OperationThread.h.