MXS-2004 Replace THREAD with std::thread in Worker

This commit is contained in:
Johan Wikman
2018-08-10 13:22:47 +03:00
parent 6db03d4b29
commit 47b53aae55
4 changed files with 29 additions and 17 deletions

View File

@ -381,7 +381,6 @@ int RoutingWorker::get_current_id()
bool RoutingWorker::start_threaded_workers()
{
bool rv = true;
size_t stack_size = config_thread_stack_size();
for (int i = this_unit.id_min_worker; i <= this_unit.id_max_worker; ++i)
{
@ -392,7 +391,7 @@ bool RoutingWorker::start_threaded_workers()
RoutingWorker* pWorker = this_unit.ppWorkers[i];
ss_dassert(pWorker);
if (!pWorker->start(stack_size))
if (!pWorker->start())
{
MXS_ALERT("Could not start routing worker %d of %d.", i, config_threadcount());
rv = false;