MySQL 8.0.40
Source Code Documentation
Find_thd_with_id Class Reference

Callback function used by kill_one_thread and timer_notify functions to find "thd" based on the thread id. More...

#include <mysqld_thd_manager.h>

Inheritance diagram for Find_thd_with_id:
[legend]

Public Member Functions

 Find_thd_with_id (my_thread_id value, bool daemon_allowed=false)
 
bool operator() (THD *thd) override
 Override this operator to provide implementation to find specific thd. More...
 
- Public Member Functions inherited from Find_THD_Impl
virtual ~Find_THD_Impl ()=default
 

Public Attributes

const my_thread_id m_thread_id
 
const bool m_daemon_allowed
 

Detailed Description

Callback function used by kill_one_thread and timer_notify functions to find "thd" based on the thread id.

Constructor & Destructor Documentation

◆ Find_thd_with_id()

Find_thd_with_id::Find_thd_with_id ( my_thread_id  value,
bool  daemon_allowed = false 
)
inline

Member Function Documentation

◆ operator()()

bool Find_thd_with_id::operator() ( THD thd)
overridevirtual

Override this operator to provide implementation to find specific thd.

Parameters
thdTHD of one element in global thread list
Returns
bool
Return values
truefor matching thd false otherwise

Implements Find_THD_Impl.

Member Data Documentation

◆ m_daemon_allowed

const bool Find_thd_with_id::m_daemon_allowed

◆ m_thread_id

const my_thread_id Find_thd_with_id::m_thread_id

The documentation for this class was generated from the following files: