#include <beemutex.h>
Collaboration diagram for mysqlpp::ScopedLock:
Public Member Functions | |
ScopedLock (BeecryptMutex &mutex) | |
Lock the mutex. | |
~ScopedLock () | |
Unlock the mutex. |
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.