This class implements a recursive lock object.
More...
This class implements a recursive lock object.
You can either explicitly lock and unlock an Lock object by using the appropriated functions.
However, it's recommended to use the corresponding scope classes for this lock object.
- See also
- TemplatedLock, ScopedLock, TemplatedScopedLock, TemporaryScopedLock, OptionalScopedLock.
◆ Lock() [1/2]
Creates a new lock object.
◆ ~Lock()
◆ Lock() [2/2]
Ocean::Lock::Lock |
( |
const Lock & |
lock | ) |
|
|
protecteddelete |
Disabled copy constructor.
- Parameters
-
lock | The lock object to be copied |
◆ isLocked()
bool Ocean::Lock::isLocked |
( |
| ) |
|
|
inline |
Returns whether this critical section is locked by another thread.
- Returns
- True, if so
◆ lock()
void Ocean::Lock::lock |
( |
| ) |
|
|
inline |
Locks the critical section.
◆ operator=()
Lock& Ocean::Lock::operator= |
( |
const Lock & |
lock | ) |
|
|
protecteddelete |
Disabled assign operator.
- Parameters
-
lock | The lock object to be assigned |
- Returns
- Reference to this object
◆ unlock()
void Ocean::Lock::unlock |
( |
| ) |
|
|
inline |
Unlocks the critical section.
◆ criticalSection_
CRITICAL_SECTION Ocean::Lock::criticalSection_ |
|
protected |
Critical section object of windows.
◆ mutex_
pthread_mutex_t Ocean::Lock::mutex_ |
|
protected |
The documentation for this class was generated from the following file: