Peano 4
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
4#if !defined(_TARCH_MULTICORE_TBB_RECURSIVE_SEMAPHORE_H_) && defined(SharedTBB)
5#define _TARCH_MULTICORE_TBB_RECURSIVE_SEMAPHORE_H_
6
7#include <string>
8#include <thread>
9
11#include "tarch/logging/Log.h"
12
13#include <mutex>
14
15namespace tarch {
16 namespace multicore {
17 class RecursiveSemaphore;
18 class RecursiveLock;
19 }
20}
21
31 private:
33
34 std::recursive_mutex _mutex;
35
39
44
49
50 public:
53};
54
55#endif
Create a lock around a boolean semaphore region.
RecursiveSemaphore(const RecursiveSemaphore &)
You may not copy a semaphore.
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:17