openscenegraph
Public Member Functions | List of all members
osg::GraphicsThread Class Reference
Inheritance diagram for osg::GraphicsThread:
osg::OperationThread osg::Referenced OpenThreads::Thread

Public Member Functions

 GraphicsThread ()
virtual void run ()
- Public Member Functions inherited from osg::OperationThread
 OperationThread ()
void setParent (Object *parent)
ObjectgetParent ()
const ObjectgetParent () const
void setOperationQueue (OperationQueue *opq)
OperationQueuegetOperationQueue ()
const OperationQueuegetOperationQueue () const
void add (Operation *operation)
void remove (Operation *operation)
void remove (const std::string &name)
void removeAllOperations ()
osg::ref_ptr< OperationgetCurrentOperation ()
void setDone (bool done)
bool getDone () const
virtual int cancel ()
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const
- Public Member Functions inherited from OpenThreads::Thread
 Thread ()
virtual ~Thread ()
int getThreadId ()
size_t getProcessId ()
int start ()
int startThread ()
int testCancel ()
int setSchedulePriority (ThreadPriority priority)
int getSchedulePriority ()
int setSchedulePolicy (ThreadPolicy policy)
int getSchedulePolicy ()
int setStackSize (size_t size)
size_t getStackSize ()
void printSchedulingInfo ()
int detach ()
int join ()
int setCancelModeDisable ()
int setCancelModeAsynchronous ()
int setCancelModeDeferred ()
bool isRunning ()
virtual void cancelCleanup ()
void * getImplementation ()
int setProcessorAffinity (unsigned int cpunum)

Additional Inherited Members

- Public Types inherited from OpenThreads::Thread
enum  ThreadPriority {
  THREAD_PRIORITY_MAX, THREAD_PRIORITY_HIGH, THREAD_PRIORITY_NOMINAL, THREAD_PRIORITY_LOW,
  THREAD_PRIORITY_MIN, THREAD_PRIORITY_DEFAULT
}
enum  ThreadPolicy { THREAD_SCHEDULE_FIFO, THREAD_SCHEDULE_ROUND_ROBIN, THREAD_SCHEDULE_TIME_SHARE, THREAD_SCHEDULE_DEFAULT }
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
static bool getThreadSafeReferenceCounting ()
static void setDeleteHandler (DeleteHandler *handler)
static DeleteHandlergetDeleteHandler ()
- Static Public Member Functions inherited from OpenThreads::Thread
static int SetConcurrency (int concurrencyLevel)
static int GetConcurrency ()
static ThreadCurrentThread ()
static void Init ()
static int YieldCurrentThread ()
static ThreadPriority GetMasterPriority ()
static int microSleep (unsigned int microsec)
- Protected Member Functions inherited from osg::OperationThread
virtual ~OperationThread ()
- Protected Attributes inherited from osg::OperationThread
observer_ptr< Object_parent
bool _done
OpenThreads::Mutex _threadMutex
osg::ref_ptr< OperationQueue_operationQueue
osg::ref_ptr< Operation_currentOperation

Detailed Description

GraphicsThread is a helper class for running OpenGL GraphicsOperation within a single thread assigned to a specific GraphicsContext.

Constructor & Destructor Documentation

osg::GraphicsThread::GraphicsThread ( )

Member Function Documentation

virtual void osg::GraphicsThread::run ( )
virtual

Run does the graphics thread run loop.

Reimplemented from osg::OperationThread.


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