OSG
3.4.0
|
#include <GraphicsThread.h>
Public Types | |
enum | PreBlockOp { NO_OPERATION, GL_FLUSH, GL_FINISH } |
Public Member Functions | |
BarrierOperation (int numThreads, PreBlockOp op=NO_OPERATION, bool keep=true) | |
virtual void | release () |
virtual void | operator() (Object *object) |
![]() | |
Operation (const std::string &name, bool keep) | |
void | setName (const std::string &name) |
const std::string & | getName () const |
void | setKeep (bool keep) |
bool | getKeep () const |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
![]() | |
Barrier (int numThreads=0) | |
virtual | ~Barrier () |
virtual void | reset () |
virtual void | block (unsigned int numThreads=0) |
virtual int | numThreadsCurrentlyBlocked () |
void | invalidate () |
Public Attributes | |
PreBlockOp | _preBlockOp |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
![]() | |
Operation () | |
Operation (const Operation &op) | |
virtual | ~Operation () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
![]() | |
std::string | _name |
bool | _keep |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
BarrierOperation allows one to synchronize multiple GraphicsThreads with each other.
Definition at line 59 of file GraphicsThread.h.
Enumerator | |
---|---|
NO_OPERATION | |
GL_FLUSH | |
GL_FINISH |
Definition at line 61 of file GraphicsThread.h.
|
inline |
Definition at line 68 of file GraphicsThread.h.
Do the actual task of this operation.
Implements osg::Operation.
|
virtual |
Release the barrier, now.
Reimplemented from OpenThreads::Barrier.
PreBlockOp osg::BarrierOperation::_preBlockOp |
Definition at line 78 of file GraphicsThread.h.