Peano
Loading...
Searching...
No Matches
RecursiveLock.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
5namespace tarch {
6 namespace multicore {
7 class RecursiveSemaphore;
8 class RecursiveLock;
9 }
10}
11
18 private:
21
22 public:
23 RecursiveLock( tarch::multicore::RecursiveSemaphore& semaphore, bool aquireLockImmediately = true );
25
26 bool tryLock();
27 bool isLocked() const;
28 void lock();
29 void free();
30};
Create a lock around a boolean semaphore region.
RecursiveSemaphore & _semaphore
RecursiveLock(tarch::multicore::RecursiveSemaphore &semaphore, bool aquireLockImmediately=true)
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition accelerator.h:19