MySQL++
3.3.0
|
Wrapper around BeecryptMutex to add scope-bound locking and unlocking. More...
#include <beemutex.h>
Public Member Functions | |
ScopedLock (BeecryptMutex &mutex) | |
Lock the mutex. | |
~ScopedLock () | |
Unlock the mutex. | |
Wrapper around BeecryptMutex to add scope-bound locking and unlocking.
This allows code to lock a mutex and ensure it will unlock on exit from the enclosing scope even in the face of exceptions. This is separate from BeecryptMutex because we don't want to make this behavior mandatory.