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
11#if defined(SharedSYCL)
12#include <mutex>
13
18 private:
19 std::mutex _mutex;
20
21 friend class tarch::multicore::Lock;
22 friend class RecursiveSemaphore;
25
29
33 inline BooleanSemaphore(const BooleanSemaphore&) {}
34
38 inline BooleanSemaphore& operator = (const BooleanSemaphore&) { return *this; }
39
40 public:
43
45};
46
47#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