aboutsummaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-12-09 20:42:19 +0100
committerGitHub <noreply@github.com>2021-12-09 20:42:19 +0100
commitb3bc50ae94764118518c0fea9fbdff7995b7fd63 (patch)
treefa34fb9b8c151dcbfd89a03b1cc476b0821ac6d9 /staging_vespalib
parent1794d0117667a4345876a613778afc068fffd49e (diff)
parent06a8585e58111223b6e1c19e8c24066714c51b89 (diff)
Merge pull request #20438 from vespa-engine/balder/add-init_fun-to-vespalib_Thread-too
Add init_fun to vespalib::Thread too to figure out what the thread is…
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();
}