#include <scopedMutex.h>


Public Member Functions | |
| ScopedMutex (Lock *lock) | |
| Constructs a new scoped mutex using the given lock. | |
| ScopedMutex (Lock &lock) | |
| Constructs a new scoped mutex using the given lock. | |
| ~ScopedMutex () | |
| Destructs the scoped mutex and unsets the mutex. | |
The mutex is automatically set upon creation, and released when the scoped mutex is destroyed, e.g., when the scope is left. The scoped mutex does nothing if a 0 pointer for the lock is passed.
Definition at line 35 of file scopedMutex.h.
| eq::base::ScopedMutex::ScopedMutex | ( | Lock * | lock | ) | [inline, explicit] |
Constructs a new scoped mutex using the given lock.
| lock | the mutex to set and unset, or 0. |
Definition at line 43 of file scopedMutex.h.
References eq::base::Lock::set().

| eq::base::ScopedMutex::ScopedMutex | ( | Lock & | lock | ) | [inline, explicit] |
Constructs a new scoped mutex using the given lock.
Definition at line 47 of file scopedMutex.h.
References eq::base::Lock::set().

| eq::base::ScopedMutex::~ScopedMutex | ( | ) | [inline] |
Destructs the scoped mutex and unsets the mutex.
Definition at line 51 of file scopedMutex.h.
References eq::base::Lock::unset().

0.9 by
1.5.8