|
The Pedigree Project 0.1
|
#include <LockGuard.h>
Collaboration diagram for LockGuard< Mutex >:Public Member Functions | |
| LockGuard (Mutex &Lock, bool Condition=true) | |
| void | disown () |
| bool | ownsLock () const |
Private Member Functions | |
| NOT_COPYABLE_OR_ASSIGNABLE (LockGuard) | |
Private Attributes | |
| TerminationDeferral | m_TerminationDeferral |
| Mutex & | m_Lock |
| bool | m_bCondition |
Mutex ownership cannot be abandoned by an outer interruption marker. Terminal teardown remains deferred until after the owned mutex is released.
Definition at line 91 of file LockGuard.h.
|
explicit |
Definition at line 31 of file LockGuard.cc.
Definition at line 40 of file LockGuard.cc.
Transfers release responsibility to the caller and ends this guard's lifetime barrier. The caller must already have released the mutex or provide its own barrier while retaining ownership.
Definition at line 46 of file LockGuard.cc.
Definition at line 103 of file LockGuard.h.
Definition at line 113 of file LockGuard.h.
Definition at line 112 of file LockGuard.h.
|
private |
Definition at line 111 of file LockGuard.h.