MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Mutex_sentry Class Reference

Public Member Functions

 Mutex_sentry (mysql_mutex_t *mutex)

Detailed Description

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.

Definition at line 89 of file binlog.cc.


The documentation for this class was generated from the following file: