|
AGX Dynamics 2.42.3.0
|
Block synchronization primitive. More...
#include <ThreadSynchronization.h>
Public Member Functions | |
| Block () | |
| Default constructor. | |
| Block (const Block &)=delete | |
| No copy-constructor. | |
| void | block () |
| Block until released from another thread. | |
| bool | block (unsigned long timeout_ms) |
| Block until released from another thread, or until timer expires. | |
| Block & | operator= (const Block &other)=delete |
| No assignment operator. | |
| void | release () |
| Release the block. | |
| void | reset () |
| Reset the block. | |
Block synchronization primitive.
Definition at line 96 of file ThreadSynchronization.h.
|
inline |
Default constructor.
Definition at line 252 of file ThreadSynchronization.h.
|
delete |
No copy-constructor.
| void agx::Block::block | ( | ) |
Block until released from another thread.
Definition at line 257 of file ThreadSynchronization.h.
References agx::Thread::getCurrentThread().
Referenced by agxOSG::ImageCaptureBase::ImageVector::block().
| bool agx::Block::block | ( | unsigned long | timeout_ms | ) |
Block until released from another thread, or until timer expires.
return false if timer expired
Definition at line 278 of file ThreadSynchronization.h.
References agx::Thread::getCurrentThread().
| void agx::Block::release | ( | ) |
Release the block.
Definition at line 303 of file ThreadSynchronization.h.
Referenced by agxOSG::ImageCaptureBase::ImageVector::push(), and agxOSG::ImageCaptureBase::ImageVector::release().
| void agx::Block::reset | ( | ) |
Reset the block.
Definition at line 317 of file ThreadSynchronization.h.
Referenced by agxOSG::ImageCaptureBase::ImageVector::block().