atscppapi
1.0.9
C++ wrapper for Apache Traffic Server API
|
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) | |
~ScopedSharedMutexLock () | |
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.
|
inlineexplicit |
Create the scoped mutex lock, once this object is constructed the lock will be held by the thread.
mutex | a shared pointer to a Mutex. |
|
inline |
Unlock the mutex.