MySQL 8.4.2
Source Code Documentation
Thread_to_plugin_map Class Reference

Public Member Functions

bool init ()
 Initializes the map. More...
 
bool deinit ()
 Deinitializes the map. More...
 
bool add (my_thread_t thread, const void *plugin)
 Adds a pthread to the list. More...
 
unsigned int remove (my_thread_t thread)
 Removes a pthread from the list. More...
 
bool clear ()
 Empties the map. More...
 
unsigned int size ()
 Returns the number of all threads. More...
 
unsigned int count (const void *plugin)
 Returns the number threads for a plugin. More...
 
unsigned int kill (const void *plugin)
 Kills all threads associated with a plugin. More...
 

Private Attributes

bool initted
 
bool psi_initted
 
mysql_mutex_t LOCK_collection
 
PSI_mutex_key key_LOCK_collection
 
std::map< my_thread_t, const void * > collection
 

Member Function Documentation

◆ add()

bool Thread_to_plugin_map::add ( my_thread_t  thread,
const void *  plugin 
)
inline

Adds a pthread to the list.

Returns
false success true failure

◆ clear()

bool Thread_to_plugin_map::clear ( )
inline

Empties the map.

Returns
false success true failure

◆ count()

unsigned int Thread_to_plugin_map::count ( const void *  plugin)
inline

Returns the number threads for a plugin.

Parameters
pluginThe plugin for which we need info.

◆ deinit()

bool Thread_to_plugin_map::deinit ( void  )
inline

Deinitializes the map.

Returns
false success true failure

◆ init()

bool Thread_to_plugin_map::init ( void  )
inline

Initializes the map.

Returns
false success true failure

◆ kill()

unsigned int Thread_to_plugin_map::kill ( const void *  plugin)
inline

Kills all threads associated with a plugin.

Parameters
pluginThe plugin for which we need info.

◆ remove()

unsigned int Thread_to_plugin_map::remove ( my_thread_t  thread)
inline

Removes a pthread from the list.

Parameters
threadThread to remove from the list
Returns
false success true failure

◆ size()

unsigned int Thread_to_plugin_map::size ( )
inline

Returns the number of all threads.

Member Data Documentation

◆ collection

std::map<my_thread_t, const void *> Thread_to_plugin_map::collection
private

◆ initted

bool Thread_to_plugin_map::initted
private

◆ key_LOCK_collection

PSI_mutex_key Thread_to_plugin_map::key_LOCK_collection
private

◆ LOCK_collection

mysql_mutex_t Thread_to_plugin_map::LOCK_collection
private

◆ psi_initted

bool Thread_to_plugin_map::psi_initted
private

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