MySQL 8.0.39
Source Code Documentation
mysqld_thd_manager.cc File Reference
#include "sql/mysqld_thd_manager.h"
#include "my_config.h"
#include "mysql/components/services/bits/psi_cond_bits.h"
#include "mysql/components/services/bits/psi_mutex_bits.h"
#include "mysql/psi/mysql_cond.h"
#include "mysql/psi/mysql_mutex.h"
#include <unistd.h>
#include <algorithm>
#include <functional>
#include <new>
#include <utility>
#include "mutex_lock.h"
#include "my_command.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_macros.h"
#include "my_psi_config.h"
#include "my_sys.h"
#include "mysql/components/services/bits/psi_bits.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/thread_pool_priv.h"
#include "sql/sql_class.h"
#include "thr_mutex.h"

Classes

class  Do_THD
 Internal class used in do_for_all_thd() and do_for_all_thd_copy() implementation. More...
 
class  Find_THD
 Internal class used in find_thd() implementation. More...
 
class  Run_free_function< T >
 

Functions

static int thd_partition (my_thread_id thread_id)
 
void inc_thread_created ()
 
void thd_lock_thread_count ()
 
void thd_unlock_thread_count ()
 
void do_for_all_thd (do_thd_impl_uint64 f, uint64 v)
 

Variables

static PSI_mutex_key key_LOCK_thd_list
 
static PSI_mutex_key key_LOCK_thd_remove
 
static PSI_mutex_key key_LOCK_thread_ids
 
static PSI_mutex_info all_thd_manager_mutexes []
 
static PSI_cond_key key_COND_thd_list
 
static PSI_cond_info all_thd_manager_conds []
 

Function Documentation

◆ do_for_all_thd()

void do_for_all_thd ( do_thd_impl_uint64  f,
uint64  v 
)

◆ inc_thread_created()

void inc_thread_created ( )

◆ thd_lock_thread_count()

void thd_lock_thread_count ( )

◆ thd_partition()

static int thd_partition ( my_thread_id  thread_id)
inlinestatic

◆ thd_unlock_thread_count()

void thd_unlock_thread_count ( )

Variable Documentation

◆ all_thd_manager_conds

PSI_cond_info all_thd_manager_conds[]
static
Initial value:
= {
{&key_COND_thd_list, "COND_thd_list", 0, 0, PSI_DOCUMENT_ME}}
#define PSI_DOCUMENT_ME
Definition: component_common.h:29
static PSI_cond_key key_COND_thd_list
Definition: mysqld_thd_manager.cc:143

◆ all_thd_manager_mutexes

PSI_mutex_info all_thd_manager_mutexes[]
static
Initial value:
=
{
{ &key_LOCK_thd_list, "LOCK_thd_list", 0, 0, PSI_DOCUMENT_ME},
{ &key_LOCK_thd_remove, "LOCK_thd_remove", 0, 0, PSI_DOCUMENT_ME},
}
#define PSI_FLAG_SINGLETON
Singleton flag.
Definition: component_common.h:35
static PSI_mutex_key key_LOCK_thd_remove
Definition: mysqld_thd_manager.cc:131
static PSI_mutex_key key_LOCK_thd_list
Definition: mysqld_thd_manager.cc:130
static PSI_mutex_key key_LOCK_thread_ids
Definition: mysqld_thd_manager.cc:132

◆ key_COND_thd_list

PSI_cond_key key_COND_thd_list
static

◆ key_LOCK_thd_list

PSI_mutex_key key_LOCK_thd_list
static

◆ key_LOCK_thd_remove

PSI_mutex_key key_LOCK_thd_remove
static

◆ key_LOCK_thread_ids

PSI_mutex_key key_LOCK_thread_ids
static