AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agx::Block Class Reference

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.
 

Detailed Description

Block synchronization primitive.

Definition at line 96 of file ThreadSynchronization.h.

Constructor & Destructor Documentation

◆ Block() [1/2]

agx::Block::Block ( )
inline

Default constructor.

Definition at line 252 of file ThreadSynchronization.h.

◆ Block() [2/2]

agx::Block::Block ( const Block &  )
delete

No copy-constructor.

Member Function Documentation

◆ block() [1/2]

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().

◆ block() [2/2]

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().

◆ operator=()

Block & agx::Block::operator= ( const Block &  other)
delete

No assignment operator.

◆ release()

void agx::Block::release ( )

◆ reset()

void agx::Block::reset ( )

Reset the block.

Definition at line 317 of file ThreadSynchronization.h.

Referenced by agxOSG::ImageCaptureBase::ImageVector::block().


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