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.
BooleanSemaphore & operator= (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.

References tarch::mpi::BooleanSemaphore.

Here is the call graph for this function:

◆ BooleanSemaphore() [2/2]

◆ ~BooleanSemaphore()

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

Member Function Documentation

◆ enterCriticalSection()

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

◆ leaveCriticalSection()

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

◆ operator=()

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

You may not copy a semaphore.

Definition at line 42 of file BooleanSemaphore.h.

References tarch::mpi::BooleanSemaphore.

Here is the call graph for this function:

◆ tryEnterCriticalSection()

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

◆ MultiReadSingleWriteSemaphore

friend class MultiReadSingleWriteSemaphore
friend

Definition at line 25 of file BooleanSemaphore.h.

References MultiReadSingleWriteSemaphore.

Referenced by MultiReadSingleWriteSemaphore.

◆ RecursiveSemaphore

friend class RecursiveSemaphore
friend

Definition at line 26 of file BooleanSemaphore.h.

References RecursiveSemaphore.

Referenced by RecursiveSemaphore.

◆ tarch::mpi::BooleanSemaphore

friend class tarch::mpi::BooleanSemaphore
friend

Definition at line 24 of file BooleanSemaphore.h.

Referenced by BooleanSemaphore(), and operator=().

◆ 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 file: