UnlockedScope Class Reference
#include <Guard.h>
Static Public Member Functions | |
template<class LockType1 , class LockType2 > | |
static void | shareScope (LockHolder< LockType1 > &l1, LockHolder< LockType2 > &l2) |
template<class LockType > | |
static void | destroyScope (LockHolder< LockType > &l) |
Detailed Description
- Date
- <2003-07-16T17:55:42-0400>
- Version
- 2.2.0
Locking policy for Lockable objects. This policy release()s a Lockable when the protection scope is created, and it acquire()s a Lockable when the scope is destroyed.
Member Function Documentation
◆ destroyScope()
|
inlinestatic |
A new protection scope is being created.
- Parameters
-
lock LockType& is a type of LockHolder. template <class LockType> static void createScope(LockHolder<LockType>& l) {
l.getLock().release();
} A protection scope is being destroyed.
- Parameters
-
lock LockType& is a type of LockHolder.
◆ shareScope()
|
inlinestatic |
A new protection scope is being created by l2, using an existing scope created by l1.
- Parameters
-
lock1 LockType1& is the LockHolder that holds the desired lock lock2 LockType1& is the LockHolder that wants to share
The documentation for this class was generated from the following file:
- Guard.h