|
atscppapi
1.0.9
C++ wrapper for Apache Traffic Server API
|
Take a Mutex reference and try to lock inside a scope and unlock when the scope is exited (if the lock was taken). More...
#include "Mutex.h"
Inherits atscppapi::noncopyable.
Public Member Functions | |
| ScopedMutexTryLock (Mutex &mutex) | |
| ~ScopedMutexTryLock () | |
| bool | hasLock () |
Take a Mutex reference and try to lock inside a scope and unlock when the scope is exited (if the lock was taken).
This is an RAII implementation which will lock a mutex at the start of the scope and unlock it when the scope is exited if the lock was taken.
|
inlineexplicit |
|
inline |
Unlock the mutex (if we hold the lock)
|
inline |
1.8.3.1