My Project
|
Public Member Functions | |
Mutex_sentry (mysql_mutex_t *mutex) |
Helper class to hold a mutex for the duration of the block.
Eliminates the need for explicit unlocking of mutexes on, e.g., error returns. On passing a null pointer, the sentry will not do anything.