Peano
Loading...
Searching...
No Matches
tarch::mpi::Lock Class Reference

Create a lock around a boolean semaphore region. More...

#include <Lock.h>

Collaboration diagram for tarch::mpi::Lock:

Public Member Functions

 Lock (tarch::mpi::BooleanSemaphore &semaphore, bool aquireLockImmediately=true)
 
 ~Lock ()
 
void lock ()
 
void free ()
 

Private Attributes

BooleanSemaphore & _semaphore
 
bool _lockIsAquired
 

Detailed Description

Create a lock around a boolean semaphore region.

See also
tarch::mpi::BooleanSemaphore

Definition at line 20 of file Lock.h.

Constructor & Destructor Documentation

◆ Lock()

tarch::mpi::Lock::Lock ( tarch::mpi::BooleanSemaphore &  semaphore,
bool  aquireLockImmediately = true 
)

◆ ~Lock()

tarch::mpi::Lock::~Lock ( )

Member Function Documentation

◆ free()

void tarch::mpi::Lock::free ( )

◆ lock()

void tarch::mpi::Lock::lock ( )

Field Documentation

◆ _lockIsAquired

bool tarch::mpi::Lock::_lockIsAquired
private

Definition at line 23 of file Lock.h.

◆ _semaphore

BooleanSemaphore& tarch::mpi::Lock::_semaphore
private

Definition at line 22 of file Lock.h.


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