AGX Dynamics  2.37.3.2
agx::Block Class Reference

Block synchronization primitive. More...

#include <ThreadSynchronization.h>

Public Member Functions

 Block ()
 Default constructor. More...
 
 Block (const Block &)=delete
 No copy-constructor. More...
 
void block ()
 Block until released from another thread. More...
 
bool block (unsigned long timeout_ms)
 Block until released from another thread, or until timer expires. More...
 
Block & operator= (const Block &other)=delete
 No assignment operator. More...
 
void release ()
 Release the block. More...
 
void reset ()
 Reset the block. More...
 

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

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

Release the block.

Definition at line 303 of file ThreadSynchronization.h.

◆ reset()

void agx::Block::reset ( )

Reset the block.

Definition at line 317 of file ThreadSynchronization.h.


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