1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Small adjustements to threadpool

This commit is contained in:
Vladislav Vaintroub
2011-12-18 20:40:38 +01:00
parent 468104567f
commit a5a22e9f64
9 changed files with 14 additions and 13 deletions

View File

@ -17,13 +17,11 @@ extern void thd_cleanup(THD *thd);
extern void delete_thd(THD *thd);
/* Threadpool parameters */
#ifdef _WIN32
uint threadpool_min_threads;
#else
uint threadpool_idle_timeout;
uint threadpool_size;
uint threadpool_stall_limit;
#endif
uint threadpool_max_threads;
@ -127,7 +125,7 @@ int threadpool_add_connection(THD *thd)
thd->net.reading_or_writing= 1;
}
}
thd->skip_wait_timeout= true;
thread_detach(thd, psi_thread);
return retval;
}