#include <OSGCondVar.h>
Public Types | |
| typedef MPCondVarType | Type |
Public Member Functions | |
CondVar | |
| void | acquire (void) |
| void | release (void) |
| bool | request (void) |
| bool | wait (const Int32 timeToWait=-1) |
| void | signal () |
| void | broadcast () |
Static Public Member Functions | |
Get | |
| static CondVar * | get (const Char8 *szName) |
| static CondVar * | find (const Char8 *szName) |
| static CondVar * | create (void) |
| static const MPCondVarType & | getClassType (void) |
Protected Types | |
| typedef CondVarBase | Inherited |
Protected Member Functions | |
Constructors | |
| CondVar (void) | |
| CondVar (const Char8 *szName, UInt32 uiId) | |
Destructor | |
| virtual | ~CondVar (void) |
Static Protected Member Functions | |
Construction | |
| static CondVar * | create (const Char8 *szName, UInt32 uiId) |
Static Protected Attributes | |
| static MPCondVarType | _type |
Private Member Functions | |
| CondVar (const CondVar &source) | |
| prohibit default function (move to 'public' if needed) | |
| void | operator= (const CondVar &source) |
| prohibit default function (move to 'public' if needed) | |
Friends | |
| class | MPFieldStore< CondVar > |
Definition at line 427 of file OSGCondVar.h.
| typedef MPCondVarType OSG::CondVar::Type |
Definition at line 433 of file OSGCondVar.h.
typedef CondVarBase OSG::CondVar::Inherited [protected] |
Definition at line 463 of file OSGCondVar.h.
| CondVar::CondVar | ( | void | ) | [protected] |
Definition at line 654 of file OSGCondVar.cpp.
Referenced by create().
00654 : 00655 Inherited() 00656 { 00657 }
| CondVar::CondVar | ( | const Char8 * | szName, | |
| UInt32 | uiId | |||
| ) | [protected] |
| CondVar::~CondVar | ( | void | ) | [protected, virtual] |
Definition at line 666 of file OSGCondVar.cpp.
References OSG::ThreadManager::removeCondVar(), and OSG::ThreadManager::the().
00667 { 00668 ThreadManager::the()->removeCondVar(this); 00669 00670 shutdown(); 00671 }
| OSG::CondVar::CondVar | ( | const CondVar & | source | ) | [private] |
| CondVar * CondVar::get | ( | const Char8 * | szName | ) | [static] |
Definition at line 624 of file OSGCondVar.cpp.
References OSG::ThreadManager::getCondVar(), and OSG::ThreadManager::the().
Referenced by create().
00625 { 00626 return ThreadManager::the()->getCondVar(szName, "OSGCondVar"); 00627 }
| CondVar * CondVar::find | ( | const Char8 * | szName | ) | [static] |
Definition at line 629 of file OSGCondVar.cpp.
References OSG::ThreadManager::findCondVar(), and OSG::ThreadManager::the().
00630 { 00631 return ThreadManager::the()->findCondVar(szName); 00632 }
| CondVar * OSG::CondVar::create | ( | void | ) | [inline, static] |
Definition at line 192 of file OSGCondVar.inl.
References get().
00193 { 00194 return CondVar::get(NULL); 00195 }
| const MPCondVarType & OSG::CondVar::getClassType | ( | void | ) | [inline, static] |
| void OSG::CondVar::acquire | ( | void | ) | [inline] |
Definition at line 206 of file OSGCondVar.inl.
Referenced by OSG::BackgroundLoaderBase::addRequest(), OSG::BackgroundLoaderBase::getNumPendingRequests(), OSG::BackgroundLoaderBase::getPendingDescriptionList(), OSG::BackgroundLoaderBase::loadProc(), OSG::BackgroundLoaderBase::processOne(), and OSG::BackgroundLoaderBase::removeRequest().
| void OSG::CondVar::release | ( | void | ) | [inline] |
Definition at line 212 of file OSGCondVar.inl.
Referenced by OSG::BackgroundLoaderBase::addRequest(), OSG::BackgroundLoaderBase::getNumPendingRequests(), OSG::BackgroundLoaderBase::getPendingDescriptionList(), OSG::BackgroundLoaderBase::loadProc(), OSG::BackgroundLoaderBase::processOne(), and OSG::BackgroundLoaderBase::removeRequest().
| bool OSG::CondVar::request | ( | void | ) | [inline] |
| bool OSG::CondVar::wait | ( | const Int32 | timeToWait = -1 |
) | [inline] |
| void OSG::CondVar::signal | ( | ) | [inline] |
Definition at line 230 of file OSGCondVar.inl.
Referenced by OSG::BackgroundLoaderBase::addRequest(), and OSG::BackgroundLoaderBase::removeRequest().
| void OSG::CondVar::broadcast | ( | ) | [inline] |
| CondVar * CondVar::create | ( | const Char8 * | szName, | |
| UInt32 | uiId | |||
| ) | [static, protected] |
Definition at line 637 of file OSGCondVar.cpp.
References CondVar().
00638 { 00639 CondVar *returnValue = NULL; 00640 00641 returnValue = new CondVar(szName, uiId); 00642 00643 if(returnValue->init() == false) 00644 { 00645 delete returnValue; 00646 returnValue = NULL; 00647 } 00648 00649 return returnValue; 00650 }
| void OSG::CondVar::operator= | ( | const CondVar & | source | ) | [private] |
friend class MPFieldStore< CondVar > [friend] |
Definition at line 493 of file OSGCondVar.h.
MPCondVarType CondVar::_type [static, protected] |