|
Peano
|
Create a lock around a boolean semaphore region. More...
#include <Lock.h>

Public Member Functions | |
| Lock (tarch::mpi::BooleanSemaphore &semaphore, bool aquireLockImmediately=true) | |
| ~Lock () | |
| void | lock () |
| void | free () |
Private Attributes | |
| BooleanSemaphore & | _semaphore |
| bool | _lockIsAquired |
Create a lock around a boolean semaphore region.
| tarch::mpi::Lock::Lock | ( | tarch::mpi::BooleanSemaphore & | semaphore, |
| bool | aquireLockImmediately = true ) |
Definition at line 6 of file Lock.cpp.
References _lockIsAquired, _semaphore, and lock().

| tarch::mpi::Lock::~Lock | ( | ) |
Definition at line 15 of file Lock.cpp.
References _lockIsAquired, and free().

| void tarch::mpi::Lock::free | ( | ) |
Definition at line 29 of file Lock.cpp.
References _lockIsAquired, _semaphore, and assertion.
Referenced by ~Lock().

| void tarch::mpi::Lock::lock | ( | ) |
Definition at line 22 of file Lock.cpp.
References _lockIsAquired, _semaphore, and assertion.
Referenced by Lock().

|
private |
|
private |