OSG::BaseThreadCommonBase Class Reference

#include <OSGBaseThread.h>

Inheritance diagram for OSG::BaseThreadCommonBase:

OSG::MPBase OSG::MemoryObject List of all members.

Class Specific



Char8 * _szName
static MPType _type

Public Types

typedef void(*) ThreadFuncF (void *pThreadArg)

Public Member Functions

bool isInitialized (void)
Get


virtual MPTypegetType (void)
virtual const MPTypegetType (void) const
UInt32 getTypeId (void)
const Char8 * getCName (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


 BaseThreadCommonBase (const Char8 *szName, UInt32 uiId)
Destructors


virtual ~BaseThreadCommonBase (void)

Protected Attributes

UInt32 _uiThreadId
bool _bInitialized

Private Member Functions

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

Friends

class ThreadManager

Detailed Description

Definition at line 82 of file OSGBaseThread.h.


Member Typedef Documentation

typedef void(*) OSG::BaseThreadCommonBase::ThreadFuncF(void *pThreadArg)

Definition at line 88 of file OSGBaseThread.h.

Reimplemented from OSG::MPBase.

Definition at line 96 of file OSGBaseThread.h.


Constructor & Destructor Documentation

BaseThreadCommonBase::BaseThreadCommonBase ( const Char8 *  szName,
UInt32  uiId 
) [protected]

Definition at line 77 of file OSGBaseThread.cpp.

00078                                                                  :
00079 
00080      Inherited   (szName),
00081     _uiThreadId  (uiId  ),
00082     _bInitialized(false )
00083 {
00084 }

BaseThreadCommonBase::~BaseThreadCommonBase ( void   )  [protected, virtual]

Definition at line 88 of file OSGBaseThread.cpp.

00089 {
00090 }

OSG::BaseThreadCommonBase::BaseThreadCommonBase ( const BaseThreadCommonBase source  )  [private]


Member Function Documentation

bool OSG::BaseThreadCommonBase::isInitialized ( void   )  [inline]

Definition at line 42 of file OSGBaseThread.inl.

References _bInitialized.

00043 {
00044     return _bInitialized;
00045 }

void OSG::BaseThreadCommonBase::operator= ( const BaseThreadCommonBase source  )  [private]

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

Definition at line 360 of file OSGMPBase.cpp.

References OSG::MPBase::_type.

00361 {
00362     return _type;
00363 }

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

Definition at line 366 of file OSGMPBase.cpp.

00367 {
00368     return 0;
00369 }

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

Definition at line 372 of file OSGMPBase.cpp.

References OSG::MPBase::_type.

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

00373 {
00374     return _type;
00375 }

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

Definition at line 378 of file OSGMPBase.cpp.

References OSG::MPBase::_type.

00379 {
00380     return _type;
00381 }

UInt32 MPBase::getTypeId ( void   )  [inherited]

Definition at line 384 of file OSGMPBase.cpp.

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

00385 {
00386     return getType().getId();
00387 }

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

Definition at line 390 of file OSGMPBase.cpp.

References OSG::MPBase::_szName.

00391 {
00392     return _szName;
00393 }

void OSG::MemoryObject::addRef ( void   )  [inline, inherited]

Definition at line 57 of file OSGMemoryObject.inl.

References OSG::MemoryObject::_refCount.

Referenced by OSG::setRefd().

00058 {
00059     _refCount++;
00060 }

void OSG::MemoryObject::subRef ( void   )  [inline, inherited]

Definition at line 63 of file OSGMemoryObject.inl.

References OSG::MemoryObject::_refCount.

Referenced by OSG::clearRef(), and OSG::setRefd().

00064 {
00065     _refCount--;
00066 
00067     if(_refCount <= 0)
00068         delete this;
00069 }

Int32 OSG::MemoryObject::getRefCount ( void   )  [inline, inherited]

Definition at line 72 of file OSGMemoryObject.inl.

References OSG::MemoryObject::_refCount.

00073 {
00074     return _refCount;
00075 }


Friends And Related Function Documentation

friend class ThreadManager [friend]

Definition at line 119 of file OSGBaseThread.h.


Member Data Documentation

Definition at line 98 of file OSGBaseThread.h.

Definition at line 99 of file OSGBaseThread.h.

Referenced by isInitialized().

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

Reimplemented in OSG::LockPool.

Definition at line 494 of file OSGMPBase.h.

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

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


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