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

Function show_threadpool_idle_threads

phx_percona/percona/sql/mysqld.cc:8350–8356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8348
8349#ifdef HAVE_POOL_OF_THREADS
8350int show_threadpool_idle_threads(THD *thd, SHOW_VAR *var, char *buff)
8351{
8352 var->type= SHOW_INT;
8353 var->value= buff;
8354 *(int *)buff= tp_get_idle_thread_count();
8355 return 0;
8356}
8357#endif
8358
8359/*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected