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
5
namespace
tarch
{
6
namespace
multicore {
7
class
RecursiveSemaphore;
8
class
RecursiveLock;
9
}
10
}
11
17
class
tarch::multicore::RecursiveLock
{
18
private
:
19
RecursiveSemaphore
&
_semaphore
;
20
bool
_lockIsAquired
;
21
22
public
:
23
RecursiveLock
(
tarch::multicore::RecursiveSemaphore
& semaphore,
bool
aquireLockImmediately =
true
);
24
~RecursiveLock
();
25
26
bool
tryLock
();
27
bool
isLocked
()
const
;
28
void
lock
();
29
void
free
();
30
};
tarch::multicore::RecursiveLock
Create a lock around a boolean semaphore region.
Definition
RecursiveLock.h:17
tarch::multicore::RecursiveLock::_semaphore
RecursiveSemaphore & _semaphore
Definition
RecursiveLock.h:19
tarch::multicore::RecursiveLock::free
void free()
tarch::multicore::RecursiveLock::lock
void lock()
tarch::multicore::RecursiveLock::_lockIsAquired
bool _lockIsAquired
Definition
RecursiveLock.h:20
tarch::multicore::RecursiveLock::RecursiveLock
RecursiveLock(tarch::multicore::RecursiveSemaphore &semaphore, bool aquireLockImmediately=true)
tarch::multicore::RecursiveLock::~RecursiveLock
~RecursiveLock()
tarch::multicore::RecursiveLock::tryLock
bool tryLock()
tarch::multicore::RecursiveLock::isLocked
bool isLocked() const
tarch::multicore::RecursiveSemaphore
Recursive Semaphore.
Definition
RecursiveSemaphore.h:30
tarch
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition
accelerator.h:19
src
tarch
multicore
RecursiveLock.h
Generated on Tue Nov 3 2026 16:05:42 for Peano by
1.9.8