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

osg::BarrierCommonBase Class Reference
[Multithreading]

#include <OSGBarrier.h>

Inheritance diagram for osg::BarrierCommonBase:

osg::MPBase osg::MemoryObject osg::PThreadBarrierBase osg::Barrier List of all members.

Class Specific

Char8_szName
*static MPType _type

Public Member Functions

Get
*virtual MPTypegetType (void)
virtual const MPTypegetType (void) const
UInt32 getTypeId (void)
const Char8getCName (void) const
Reference Counting
*void addRef (void)
void subRef (void)
Int32 getRefCount (void)

Static Public Member Functions

Class Get
*static const MPTypegetStaticType (void)
static UInt32 getStaticTypeId (void)

Protected Types

typedef MPBase Inherited

Protected Member Functions

Constructors
BarrierCommonBase (const Char8 *szName, UInt32 uiId)
Destructor
*virtual ~BarrierCommonBase (void)
Set
*void setNumWaitFor (UInt32 uiNumWaitFor)

Protected Attributes

UInt32 _uiBarrierId
volatile UInt32 _uiNumWaitFor

Private Member Functions

 BarrierCommonBase (const BarrierCommonBase &source)
 prohibit default function (move to 'public' if needed)
void operator= (const BarrierCommonBase &source)
 prohibit default function (move to 'public' if needed)

Detailed Description

Definition at line 74 of file OSGBarrier.h.


Member Typedef Documentation

typedef MPBase osg::BarrierCommonBase::Inherited [protected]
 

Reimplemented from osg::MPBase.

Reimplemented in osg::PThreadBarrierBase, and osg::Barrier.

Definition at line 84 of file OSGBarrier.h.


Constructor & Destructor Documentation

BarrierCommonBase::BarrierCommonBase const Char8 szName,
UInt32  uiId
[protected]
 

Definition at line 61 of file OSGBarrier.cpp.

00062                                                           :
00063      Inherited   (szName),
00064     _uiBarrierId (uiId  ),
00065     _uiNumWaitFor(     1)
00066 {
00067 }

BarrierCommonBase::~BarrierCommonBase void   )  [protected, virtual]
 

Definition at line 71 of file OSGBarrier.cpp.

00072 {
00073 }

osg::BarrierCommonBase::BarrierCommonBase const BarrierCommonBase source  )  [private]
 


Member Function Documentation

void osg::BarrierCommonBase::setNumWaitFor UInt32  uiNumWaitFor  )  [inline, protected]
 

Definition at line 42 of file OSGBarrier.inl.

References _uiNumWaitFor.

00043 {
00044     _uiNumWaitFor = uiNumWaitFor;
00045 }

void osg::BarrierCommonBase::operator= const BarrierCommonBase source  )  [private]
 

const MPType & MPBase::getStaticType void   )  [static, inherited]
 

Definition at line 253 of file OSGMPBase.cpp.

References osg::MPBase::_type.

00254 {
00255     return _type;
00256 }

UInt32 MPBase::getStaticTypeId void   )  [static, inherited]
 

Definition at line 259 of file OSGMPBase.cpp.

00260 {
00261     return 0;
00262 }

MPType & MPBase::getType void   )  [virtual, inherited]
 

Definition at line 265 of file OSGMPBase.cpp.

References osg::MPBase::_type.

Referenced by osg::MPBase::getTypeId().

00266 {
00267     return _type;
00268 }

const MPType & MPBase::getType void   )  const [virtual, inherited]
 

Definition at line 271 of file OSGMPBase.cpp.

References osg::MPBase::_type.

00272 {
00273     return _type;
00274 }

UInt32 MPBase::getTypeId void   )  [inherited]
 

Definition at line 277 of file OSGMPBase.cpp.

References osg::TypeBase::getId(), and osg::MPBase::getType().

00278 {
00279     return getType().getId();
00280 }

const Char8 * MPBase::getCName void   )  const [inherited]
 

Definition at line 283 of file OSGMPBase.cpp.

References osg::MPBase::_szName.

00284 {
00285     return _szName;
00286 }

void MemoryObject::addRef void   )  [inherited]
 

Definition at line 64 of file OSGMemoryObject.cpp.

References osg::MemoryObject::_refCount.

Referenced by osg::SharedObjectHandler::getSharedObject(), and osg::SharedObjectHandler::initialize().

00065 {
00066     _refCount++;
00067 }

void MemoryObject::subRef void   )  [inherited]
 

Definition at line 69 of file OSGMemoryObject.cpp.

References osg::MemoryObject::_refCount.

00070 {
00071     _refCount--;
00072 
00073     if(_refCount <= 0)
00074         delete this;
00075 }

Int32 MemoryObject::getRefCount void   )  [inherited]
 

Definition at line 77 of file OSGMemoryObject.cpp.

References osg::MemoryObject::_refCount.

00078 {
00079     return _refCount;
00080 }


Member Data Documentation

UInt32 osg::BarrierCommonBase::_uiBarrierId [protected]
 

Definition at line 86 of file OSGBarrier.h.

volatile UInt32 osg::BarrierCommonBase::_uiNumWaitFor [protected]
 

Definition at line 87 of file OSGBarrier.h.

Referenced by osg::PThreadBarrierBase::enter(), and setNumWaitFor().

MPType MPBase::_type [static, protected, inherited]
 

Reimplemented in osg::Barrier, osg::BaseThread, osg::Lock, osg::LockPool, osg::Thread, and osg::ExternalThread.

Referenced by osg::MPBase::getStaticType(), and osg::MPBase::getType().

Char8* osg::MPBase::_szName [protected, inherited]
 

Definition at line 406 of file OSGMPBase.h.

Referenced by osg::MPBase::getCName(), osg::LockPool::init(), osg::MPBase::MPBase(), osg::BasePThreadBase::print(), and osg::MPBase::~MPBase().


The documentation for this class was generated from the following files:
Generated on Thu Aug 25 04:12:31 2005 for OpenSG by  doxygen 1.4.3