MySQL 8.0.40
Source Code Documentation
|
Generic sentry class for read locking. More...
#include <read_write_lock_guard.h>
Public Member Functions | |
Rdlock_guard (Rd_lockable &lock) | |
Constructor for the class that creates a sentry that will unlock the callable object on destruction and then read locks the object. More... | |
virtual | ~Rdlock_guard () override=default |
Public Member Functions inherited from raii::Sentry< F > | |
Sentry (F dispose) | |
Constructor for the class that stores the callable object passed as argument, to be invoked upon disposal of the object. More... | |
virtual | ~Sentry () |
Destructor for the class. More... | |
Generic sentry class for read locking.
For the given callable type the class assumes a read lock can be acquired with rdlock() in the constructor. On deletion the class will unlock with an unlock() invocation
|
inline |
Constructor for the class that creates a sentry that will unlock the callable object on destruction and then read locks the object.
lock | The callable object to be locked/unlocked |
|
overridevirtualdefault |