Peano
Loading...
Searching...
No Matches
Lock.h
Go to the documentation of this file.
1
// Copyright (C) 2009 Technische Universitaet Muenchen
2
// This file is part of the Peano project. For conditions of distribution and
3
// use, please see the copyright notice at www.peano-framework.org
4
#pragma once
5
6
7
namespace
tarch
{
8
namespace
mpi
{
9
class
BooleanSemaphore
;
10
class
Lock
;
11
}
12
}
13
14
20
class
tarch::mpi::Lock
{
21
private
:
22
BooleanSemaphore
&
_semaphore
;
23
bool
_lockIsAquired
;
24
public
:
25
Lock
(
tarch::mpi::BooleanSemaphore
& semaphore,
bool
aquireLockImmediately =
true
);
26
~Lock
();
27
28
void
lock
();
29
void
free
();
30
};
31
tarch::mpi::BooleanSemaphore
Boolean semaphore across MPI ranks.
Definition
BooleanSemaphore.h:71
tarch::mpi::Lock
Create a lock around a boolean semaphore region.
Definition
Lock.h:20
tarch::mpi::Lock::~Lock
~Lock()
tarch::mpi::Lock::free
void free()
tarch::mpi::Lock::lock
void lock()
tarch::mpi::Lock::_semaphore
BooleanSemaphore & _semaphore
Definition
Lock.h:22
tarch::mpi::Lock::_lockIsAquired
bool _lockIsAquired
Definition
Lock.h:23
tarch::mpi::Lock::Lock
Lock(tarch::mpi::BooleanSemaphore &semaphore, bool aquireLockImmediately=true)
tarch::mpi
Definition
BooleanSemaphore.h:16
tarch
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition
__init__.py:1
src
tarch
mpi
Lock.h
Generated on
for Peano by
1.15.0