Take a shared_ptr to a Mutex and lock inside a scope and unlock when the scope is exited. More...
#include <Mutex.h>
Inherits atscppapi::noncopyable.

| Public Member Functions | |
| ScopedSharedMutexLock (shared_ptr< Mutex > mutex) | |
| Create the scoped mutex lock, once this object is constructed the lock will be held by the thread. | |
| ~ScopedSharedMutexLock () | |
| Unlock the mutex. | |
Take a shared_ptr to a Mutex and lock inside a scope and unlock when the scope is exited.
This is an RAII implementation which will lock a mutex at the start of the scope and unlock it when the scope is exited.
Definition at line 148 of file Mutex.h.
| atscppapi::ScopedSharedMutexLock::ScopedSharedMutexLock | ( | shared_ptr< Mutex > | mutex | ) |  [inline, explicit] | 
| atscppapi::ScopedSharedMutexLock::~ScopedSharedMutexLock | ( | ) |  [inline] | 
 1.7.1
 1.7.1