1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

cleanup: thread_count

move thread_count handling into THD:
* increment thread_count in THD constructor
* decrement thread_count in THD destructor
* never modify thread_count directly!
This commit is contained in:
Sergei Golubchik
2016-05-14 13:22:47 +02:00
parent 7425610c81
commit 562c1df7d9
14 changed files with 22 additions and 68 deletions

View File

@ -766,7 +766,6 @@ inline void dec_thread_running()
}
extern void set_server_version(void);
extern void dec_thread_count(void);
#if defined(MYSQL_DYNAMIC_PLUGIN) && defined(_WIN32)
extern "C" THD *_current_thd_noinline();