24#ifndef MYSQL_RWLOCK_SCOPED_LOCK_H
25#define MYSQL_RWLOCK_SCOPED_LOCK_H
36 const char *
file,
int line);
Locks RW-lock and releases lock on scope exit.
Definition: rwlock_scoped_lock.h:33
rwlock_scoped_lock & operator=(const rwlock_scoped_lock &)=delete
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:39
mysql_rwlock_t * m_lock
Definition: rwlock_scoped_lock.h:44
rwlock_scoped_lock(const rwlock_scoped_lock &)=delete
~rwlock_scoped_lock()
Definition: rwlock_scoped_lock.cc:67
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:315
Provides atomic access in shared-exclusive modes.
Definition: shared_spin_lock.h:79
Definition: rwlock_scoped_lock.h:29
An instrumented rwlock structure.
Definition: mysql_rwlock_bits.h:51