aboutsummaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-12-09 14:18:25 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-12-09 14:18:25 +0000
commitd30df2cdc5580affa56eb6ca5ab2ab4145aa112c (patch)
tree7249dd679fd9ef28505e37495dfb2bfc3c191b09 /staging_vespalib
parent800c53c580717f7f1d8bcc02d31235ac6d3673d2 (diff)
Add init_fun to vespalib::Thread too to figure out what the thread is used for.
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp b/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
index 99791c36a9e..a99bce0a705 100644
--- a/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
+++ b/staging_vespalib/src/vespa/vespalib/util/singleexecutor.cpp
@@ -19,7 +19,7 @@ SingleExecutor::SingleExecutor(init_fun_t func, uint32_t taskLimit, uint32_t wat
_mutex(),
_consumerCondition(),
_producerCondition(),
- _thread(*this),
+ _thread(*this, func),
_idleTracker(steady_clock::now()),
_threadIdleTracker(),
_wakeupCount(0),
@@ -32,7 +32,6 @@ SingleExecutor::SingleExecutor(init_fun_t func, uint32_t taskLimit, uint32_t wat
_reactionTime(reactionTime),
_closed(false)
{
- (void) func; //TODO implement similar to ThreadStackExecutor
assert(taskLimit >= watermark);
_thread.start();
}