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
10namespace tarch {
11 namespace multicore {
12 class BooleanSemaphore;
13 class Lock;
14 }
15}
16
17#if defined(SharedTBB)
18
19#include <tbb/spin_mutex.h>
20
22 private:
26 friend class RecursiveSemaphore;
27
28 tbb::spin_mutex _mutex;
29
33
38
42 inline BooleanSemaphore& operator = (const BooleanSemaphore&) { return *this; }
43
44 public:
47
49};
50
51#endif
Boolean semaphore across MPI ranks.
BooleanSemaphore & operator=(const BooleanSemaphore &)
You may not copy a semaphore.
BooleanSemaphore(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
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition accelerator.h:19