summaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/threadstackexecutor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/vespa/vespalib/util/threadstackexecutor.cpp')
-rw-r--r--vespalib/src/vespa/vespalib/util/threadstackexecutor.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/vespalib/src/vespa/vespalib/util/threadstackexecutor.cpp b/vespalib/src/vespa/vespalib/util/threadstackexecutor.cpp
index a975db04a2e..9ca6c643d75 100644
--- a/vespalib/src/vespa/vespalib/util/threadstackexecutor.cpp
+++ b/vespalib/src/vespa/vespalib/util/threadstackexecutor.cpp
@@ -17,16 +17,22 @@ ThreadStackExecutor::wakeup(unique_lock &, std::condition_variable &)
{
}
-ThreadStackExecutor::ThreadStackExecutor(uint32_t threads, uint32_t stackSize,
- uint32_t taskLimit)
- : ThreadStackExecutorBase(stackSize, taskLimit, unnamed_nonblocking_executor)
+ThreadStackExecutor::ThreadStackExecutor(uint32_t threads)
+ : ThreadStackExecutor(threads, unnamed_nonblocking_executor)
+{ }
+
+ThreadStackExecutor::ThreadStackExecutor(uint32_t threads, uint32_t taskLimit)
+ : ThreadStackExecutorBase(taskLimit, unnamed_nonblocking_executor)
{
start(threads);
}
-ThreadStackExecutor::ThreadStackExecutor(uint32_t threads, uint32_t stackSize,
- init_fun_t init_function, uint32_t taskLimit)
- : ThreadStackExecutorBase(stackSize, taskLimit, std::move(init_function))
+ThreadStackExecutor::ThreadStackExecutor(uint32_t threads, init_fun_t init_function)
+ : ThreadStackExecutor(threads, std::move(init_function), 0xffffffff)
+{ }
+
+ThreadStackExecutor::ThreadStackExecutor(uint32_t threads, init_fun_t init_function, uint32_t taskLimit)
+ : ThreadStackExecutorBase(taskLimit, std::move(init_function))
{
start(threads);
}