MXS-1360 Add 'thread_stack_size' configuration value

Using the 'thread_stack_size' configuration value, the stack size
of the worker threads can be adjusted.
This commit is contained in:
Johan Wikman
2017-08-14 15:15:41 +03:00
parent e9b2a560b8
commit 49ba1f8fa0
6 changed files with 128 additions and 62 deletions

View File

@ -843,11 +843,11 @@ void Worker::run()
MXS_NOTICE("Worker %d has shut down.", m_id);
}
bool Worker::start()
bool Worker::start(size_t stack_size)
{
m_started = true;
if (!thread_start(&m_thread, &Worker::thread_main, this, 0))
if (!thread_start(&m_thread, &Worker::thread_main, this, stack_size))
{
m_started = false;
}