Get rid of idle thread counter atomic variable.

Instead, use function that loops over groups and 
calculates  idle threads for  "show status".
This commit is contained in:
Vladislav Vaintroub 2012-01-15 15:41:25 +01:00
commit d212991e89
4 changed files with 53 additions and 23 deletions

View file

@ -753,3 +753,13 @@ void tp_wait_end(THD *thd)
/* Do we need to do anything ? */
}
/**
Number of idle threads in pool.
This info is not available in Windows implementation,
thus function always returns 0.
*/
int tp_get_idle_thread_count()
{
return 0;
}