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
3#pragma once
4
5#include <string>
8
9
10#if defined(SharedCPP)
11#include <mutex>
12
14 private:
15 std::mutex _mutex;
16
17 friend class tarch::multicore::Lock;
18 friend class RecursiveSemaphore;
21
25
29 inline BooleanSemaphore(const BooleanSemaphore&) {}
30
34 BooleanSemaphore& operator = (const BooleanSemaphore&) { return *this; }
35
36 public:
39
41};
42
43#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