MCPcopy Create free account
hub / github.com/Tencent/phxsql / copy_global_thread_list

Function copy_global_thread_list

phx_percona/percona/sql/mysqld.cc:879–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877}
878
879void copy_global_thread_list(std::set<THD*> *new_copy)
880{
881 mysql_mutex_assert_owner(&LOCK_thd_remove);
882 mysql_mutex_lock(&LOCK_thread_count);
883 *new_copy= *global_thread_list;
884 mysql_mutex_unlock(&LOCK_thread_count);
885}
886
887void add_global_thread(THD *thd)
888{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected