Peano
Loading...
Searching...
No Matches
RecursiveSemaphore.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#if defined(SharedCPP)
5#elif defined(SharedTBB)
7#elif defined(SharedOMP)
9#elif defined(SharedSYCL)
11#elif !defined(_TARCH_MULTICORE_RECURSIVE_SEMAPHORE_H_)
12#define _TARCH_MULTICORE_RECURSIVE_SEMAPHORE_H_
13
14namespace tarch {
15 namespace multicore {
16 class RecursiveSemaphore;
17 class RecursiveLock;
18 }
19}
20
21#include <string>
22#include <thread>
23
25#include "tarch/logging/Log.h"
26
37 private:
39
44
49
56
61
65 RecursiveSemaphore& operator = ( const RecursiveSemaphore& ) { return *this; }
66
67 public:
70
72};
73
74#endif
Create a lock around a boolean semaphore region.
tarch::multicore::RecursiveLock Lock
RecursiveSemaphore & operator=(const RecursiveSemaphore &)
You may not copy a semaphore.
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition accelerator.h:19