Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# osg::BarrierOperation Struct Reference

BarrierOperation allows one to syncronize multiple GraphicsThreads with each other. More...

Inheritance diagram for osg::BarrierOperation:

[legend]
List of all members.

## Public Types
enum | PreBlockOp { NO_OPERATION, GL_FLUSH, GL_FINISH }
## Public Member Functions
| BarrierOperation (int numThreads, PreBlockOp op=NO_OPERATION)
virtual void | release ()
| if this operation is a barrier then release it.
virtual void | operator() (GraphicsContext *context)
| Do the actual task of this operation.
## Public Attributes
PreBlockOp | _preBlockOp

## Detailed Description

BarrierOperation allows one to syncronize multiple GraphicsThreads with each other.

## Member Enumeration Documentation

enum osg::BarrierOperation::PreBlockOp

  | Enumeration values:
  NO_OPERATION |
  GL_FLUSH |
  GL_FINISH |

## Constructor & Destructor Documentation

osg::BarrierOperation::BarrierOperation | ( | int | numThreads,
|  | PreBlockOp | op = NO_OPERATION
| ) | `[inline]`

## Member Function Documentation

virtual void osg::BarrierOperation::operator() | ( | GraphicsContext * | context | ) | `[virtual]`

| Do the actual task of this operation. Reimplemented from osg::GraphicsThread::Operation.

virtual void osg::BarrierOperation::release | ( |  | ) | `[virtual]`

| if this operation is a barrier then release it. Reimplemented from osg::GraphicsThread::Operation.

## Member Data Documentation

PreBlockOp osg::BarrierOperation::_preBlockOp

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

- GraphicsThread