diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-12-09 20:42:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 20:42:19 +0100 |
commit | b3bc50ae94764118518c0fea9fbdff7995b7fd63 (patch) | |
tree | fa34fb9b8c151dcbfd89a03b1cc476b0821ac6d9 /staging_vespalib | |
parent | 1794d0117667a4345876a613778afc068fffd49e (diff) | |
parent | 06a8585e58111223b6e1c19e8c24066714c51b89 (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.cpp | 3 |
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(); } |