23#ifndef MYSQL_RWLOCK_SCOPED_LOCK_H
24#define MYSQL_RWLOCK_SCOPED_LOCK_H
34 const char *
file,
int line);
Locks RW-lock and releases lock on scope exit.
Definition: rwlock_scoped_lock.h:31
rwlock_scoped_lock(mysql_rwlock_t *lock, bool lock_for_write, const char *file, int line)
Acquires lock on specified lock object.
Definition: rwlock_scoped_lock.cc:41
rwlock_scoped_lock(const rwlock_scoped_lock &)=delete
rwlock_scoped_lock & operator=(const rwlock_scoped_lock &)=delete
mysql_rwlock_t * m_lock
Definition: rwlock_scoped_lock.h:42
~rwlock_scoped_lock()
Definition: rwlock_scoped_lock.cc:68
static bool lock_for_write(THD *thd, const MDL_key &mdl_key)
Lock a column statistic MDL key for writing (exclusive lock).
Definition: histogram.cc:356
Provides atomic access in shared-exclusive modes.
Definition: shared_spin_lock.h:78
Instrumentation helpers for rwlock.
An instrumented rwlock structure.
Definition: mysql_rwlock_bits.h:50