24#ifndef MYSQL_RWLOCK_SCOPED_LOCK_H 
   25#define MYSQL_RWLOCK_SCOPED_LOCK_H 
   35                     const char *
file, 
int line);
 
Locks RW-lock and releases lock on scope exit.
Definition: rwlock_scoped_lock.h:32
 
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:42
 
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:43
 
~rwlock_scoped_lock()
Definition: rwlock_scoped_lock.cc:69
 
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:314
 
Provides atomic access in shared-exclusive modes.
Definition: shared_spin_lock.h:79
 
Instrumentation helpers for rwlock.
 
An instrumented rwlock structure.
Definition: mysql_rwlock_bits.h:51