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
4#if !defined(_TARCH_MULTICORE_CPP_RECURSIVE_SEMAPHORE_H_) && defined(SharedCPP)
5#define _TARCH_MULTICORE_CPP_RECURSIVE_SEMAPHORE_H_
6
7#include <string>
8#include <thread>
9
11#include "tarch/logging/Log.h"
12
13namespace tarch {
14 namespace multicore {
15 class RecursiveSemaphore;
16 class RecursiveLock;
17 }
18}
19
29 private:
31
32 std::recursive_mutex _mutex;
33
37
42
46 inline RecursiveSemaphore& operator = (const RecursiveSemaphore&) { return *this; }
47
48 public:
51
53};
54
55#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