Peano
Loading...
Searching...
No Matches
MultiReadSingleWriteSemaphore.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
7
8
9namespace tarch {
10 namespace multicore {
11 class MultiReadSingleWriteSemaphore;
12 class MultiReadSingleWriteLock;
13 }
14}
15
16
17#if defined(SharedTBB) or defined(SharedTBBExtension)
18
19
20#include <oneapi/tbb/spin_rw_mutex.h>
21
72
73
74#endif
Create a lock around a boolean semaphore region.
MultiReadSingleWriteSemaphore(bool highPriorityToWrites=true)
Argument is ignored in TBB version.
void leaveCriticalReadSection()
Tells the semaphore that it is about to leave.
MultiReadSingleWriteSemaphore & operator=(const MultiReadSingleWriteSemaphore &)
You may not copy a semaphore.
MultiReadSingleWriteSemaphore(const MultiReadSingleWriteSemaphore &)=delete
You may not copy a semaphore.
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition accelerator.h:19