Peano
Loading...
Searching...
No Matches
tarch::multicore::BooleanSemaphore Class Reference

#include <BooleanSemaphore.h>

Public Types

using Lock = tarch::multicore::Lock
 

Public Member Functions

 BooleanSemaphore ()
 
 ~BooleanSemaphore ()
 

Private Member Functions

void enterCriticalSection ()
 
void leaveCriticalSection ()
 
bool tryEnterCriticalSection ()
 
 BooleanSemaphore (const BooleanSemaphore &)
 You may not copy a semaphore.
 
BooleanSemaphoreoperator= (const BooleanSemaphore &)
 You may not copy a semaphore.
 

Private Attributes

tbb::spin_mutex _mutex
 

Friends

class tarch::multicore::Lock
 
class tarch::mpi::BooleanSemaphore
 
class MultiReadSingleWriteSemaphore
 
class RecursiveSemaphore
 

Detailed Description

Definition at line 21 of file BooleanSemaphore.h.

Member Typedef Documentation

◆ Lock

Constructor & Destructor Documentation

◆ BooleanSemaphore() [1/2]

You may not copy a semaphore.

Definition at line 37 of file BooleanSemaphore.h.

◆ BooleanSemaphore() [2/2]

◆ ~BooleanSemaphore()

tarch::multicore::BooleanSemaphore::~BooleanSemaphore ( )

Definition at line 10 of file BooleanSemaphore.cpp.

Member Function Documentation

◆ enterCriticalSection()

void tarch::multicore::BooleanSemaphore::enterCriticalSection ( )
private

Definition at line 14 of file BooleanSemaphore.cpp.

Referenced by tarch::mpi::BooleanSemaphore::enterCriticalSection().

Here is the caller graph for this function:

◆ leaveCriticalSection()

void tarch::multicore::BooleanSemaphore::leaveCriticalSection ( )
private

Definition at line 18 of file BooleanSemaphore.cpp.

◆ operator=()

BooleanSemaphore & tarch::multicore::BooleanSemaphore::operator= ( const BooleanSemaphore & )
private

You may not copy a semaphore.

Definition at line 42 of file BooleanSemaphore.h.

◆ tryEnterCriticalSection()

bool tarch::multicore::BooleanSemaphore::tryEnterCriticalSection ( )
private

Definition at line 22 of file BooleanSemaphore.cpp.

Friends And Related Symbol Documentation

◆ MultiReadSingleWriteSemaphore

friend class MultiReadSingleWriteSemaphore
friend

Definition at line 25 of file BooleanSemaphore.h.

◆ RecursiveSemaphore

friend class RecursiveSemaphore
friend

Definition at line 26 of file BooleanSemaphore.h.

◆ tarch::mpi::BooleanSemaphore

friend class tarch::mpi::BooleanSemaphore
friend

Definition at line 24 of file BooleanSemaphore.h.

◆ tarch::multicore::Lock

friend class tarch::multicore::Lock
friend

Definition at line 23 of file BooleanSemaphore.h.

Field Documentation

◆ _mutex

tbb::spin_mutex tarch::multicore::BooleanSemaphore::_mutex
private

Definition at line 28 of file BooleanSemaphore.h.


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