Peano
Loading...
Searching...
No Matches
BooleanSemaphore.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
4#if !defined( _TARCH_MULTICORE_BOOLEAN_SEMAPHORE_OMP_H_) && defined(SharedOMP)
5#define _TARCH_MULTICORE_BOOLEAN_SEMAPHORE_OMP_H_
6
8#include <string>
9#include <omp.h>
10
12 private:
13 friend class tarch::multicore::Lock;
16 friend class RecursiveSemaphore;
17
18 omp_lock_t lock;
19
23
27 inline BooleanSemaphore(const BooleanSemaphore&) {}
28
32 inline BooleanSemaphore& operator = (const BooleanSemaphore&) { return *this; }
33
34 public:
37
39};
40
41#endif
Boolean semaphore across MPI ranks.
BooleanSemaphore & operator=(const BooleanSemaphore &)
You may not copy a semaphore.
friend class tarch::mpi::BooleanSemaphore
Create a lock around a boolean semaphore region.
Definition Lock.h:19