#include <OSGBarrier.h>
Public Types | |
| typedef MPBarrierType | Type |
Public Member Functions | |
Enter | |
| void | setNumWaitFor (UInt32 uiNumWaitFor) |
Enter | |
| void | enter (void) |
| void | enter (UInt32 uiNumWaitFor) |
Static Public Member Functions | |
Get | |
| static Barrier * | get (const Char8 *szName) |
| static Barrier * | find (const Char8 *szName) |
| static Barrier * | create (void) |
| static const MPBarrierType & | getClassType (void) |
Protected Types | |
| typedef BarrierBase | Inherited |
Protected Member Functions | |
Constructors | |
| Barrier (const Char8 *szName, UInt32 uiId) | |
Destructor | |
| virtual | ~Barrier (void) |
Static Protected Member Functions | |
Construction | |
| static Barrier * | create (const Char8 *szName, UInt32 uiId) |
Static Protected Attributes | |
| static MPBarrierType | _type |
Private Member Functions | |
| Barrier (const Barrier &source) | |
| prohibit default function (move to 'public' if needed) | |
| void | operator= (const Barrier &source) |
| prohibit default function (move to 'public' if needed) | |
Friends | |
| class | MPFieldStore< Barrier > |
Definition at line 363 of file OSGBarrier.h.
| typedef MPBarrierType OSG::Barrier::Type |
Definition at line 369 of file OSGBarrier.h.
typedef BarrierBase OSG::Barrier::Inherited [protected] |
Definition at line 402 of file OSGBarrier.h.
| Barrier::Barrier | ( | const Char8 * | szName, | |
| UInt32 | uiId | |||
| ) | [protected] |
Definition at line 281 of file OSGBarrier.cpp.
Referenced by create().
00282 : 00283 Inherited(szName, uiId) 00284 { 00285 }
| Barrier::~Barrier | ( | void | ) | [protected, virtual] |
Definition at line 289 of file OSGBarrier.cpp.
References OSG::ThreadManager::removeBarrier(), and OSG::ThreadManager::the().
00290 { 00291 ThreadManager::the()->removeBarrier(this); 00292 00293 shutdown(); 00294 }
| OSG::Barrier::Barrier | ( | const Barrier & | source | ) | [private] |
| Barrier * Barrier::get | ( | const Char8 * | szName | ) | [static] |
Definition at line 298 of file OSGBarrier.cpp.
References OSG::ThreadManager::getBarrier(), and OSG::ThreadManager::the().
Referenced by create(), OSG::DgramQueue::DgramQueue(), OSG::PipelineComposer::open(), and OSG::BinarySwapComposer::open().
00299 { 00300 return ThreadManager::the()->getBarrier(szName, "OSGBarrier"); 00301 }
| Barrier * Barrier::find | ( | const Char8 * | szName | ) | [static] |
Definition at line 303 of file OSGBarrier.cpp.
References OSG::ThreadManager::findBarrier(), and OSG::ThreadManager::the().
00304 { 00305 return ThreadManager::the()->findBarrier(szName); 00306 }
| Barrier * OSG::Barrier::create | ( | void | ) | [inline, static] |
Definition at line 164 of file OSGBarrier.inl.
References get().
00165 { 00166 return Barrier::get(NULL); 00167 }
| const MPBarrierType & OSG::Barrier::getClassType | ( | void | ) | [inline, static] |
| void OSG::Barrier::setNumWaitFor | ( | UInt32 | uiNumWaitFor | ) | [inline] |
| void OSG::Barrier::enter | ( | void | ) | [inline] |
Definition at line 186 of file OSGBarrier.inl.
Referenced by OSG::PipelineComposer::close(), OSG::BinarySwapComposer::close(), OSG::PipelineComposer::composeBuffer(), OSG::DgramQueue::get(), OSG::DgramQueue::put(), OSG::BinarySwapComposer::readCombine(), OSG::BinarySwapComposer::startReader(), OSG::PipelineComposer::startViewport(), OSG::DgramQueue::wait(), OSG::BinarySwapComposer::writeCombine(), OSG::BinarySwapComposer::writeProc(), and OSG::PipelineComposer::writeResult().
| void OSG::Barrier::enter | ( | UInt32 | uiNumWaitFor | ) | [inline] |
| Barrier * Barrier::create | ( | const Char8 * | szName, | |
| UInt32 | uiId | |||
| ) | [static, protected] |
Definition at line 311 of file OSGBarrier.cpp.
References Barrier().
00313 { 00314 Barrier *returnValue = NULL; 00315 00316 returnValue = new Barrier(szName, uiId); 00317 00318 if(returnValue->init() == false) 00319 { 00320 delete returnValue; 00321 returnValue = NULL; 00322 } 00323 00324 return returnValue; 00325 }
| void OSG::Barrier::operator= | ( | const Barrier & | source | ) | [private] |
friend class MPFieldStore< Barrier > [friend] |
Definition at line 432 of file OSGBarrier.h.
MPBarrierType Barrier::_type [static, protected] |