Inheritance diagram for lfc::Guard::

Public Methods | |
| Guard (Mutex &rMutex) | |
| creates a Guard from rMutex and locks rMutex. More... | |
| virtual | ~Guard () throw () |
| if this is the last Guard that locked a shared Mutex, unlock it. More... | |
| long | lockCount () const |
| number of locks on currently managed Mutex. More... | |
| void | lock () |
| attempts to lock the Mutex. increments lock count. More... | |
| bool | tryLock () |
| tries to lock the managed Mutex but doesn't block in waiting if the Mutex is already locked. More... | |
| void | unlock () |
| unlocks the managed Mutex; decrements the lock count. More... | |
Protected Attributes | |
| Mutex & | m_rMutex |
| managed Mutex object. More... | |
| long | m_lockCount |
| the lock counter. More... | |
|
|
creates a Guard from rMutex and locks rMutex.
|
|
|
if this is the last Guard that locked a shared Mutex, unlock it.
|
|
|
number of locks on currently managed Mutex.
|
|
|
attempts to lock the Mutex. increments lock count.
|
|
|
tries to lock the managed Mutex but doesn't block in waiting if the Mutex is already locked.
|
|
|
unlocks the managed Mutex; decrements the lock count.
|
|
|
managed Mutex object.
|
|
|
the lock counter.
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001