summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/util/foreground_thread_executor.h
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-10-22 16:30:17 +0200
committerGitHub <noreply@github.com>2021-10-22 16:30:17 +0200
commit5d17da853b36dd4d2798195de709438725e6351c (patch)
tree9cb6e4eb790cab9a7dbbff82af52a3f8b8c40fb4 /staging_vespalib/src/vespa/vespalib/util/foreground_thread_executor.h
parent1eef1ea9cae67ac87725eeee379c3435ff45f858 (diff)
parente0e101daff1db918463976907a47ccbe57cc3d50 (diff)
Merge pull request #19692 from vespa-engine/balder/count-working-days-2
Add a metric for how many times a worker in a thread pool has woken up.
Diffstat (limited to 'staging_vespalib/src/vespa/vespalib/util/foreground_thread_executor.h')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/foreground_thread_executor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/foreground_thread_executor.h b/staging_vespalib/src/vespa/vespalib/util/foreground_thread_executor.h
index 3bd5ca3d49a..c1e56572614 100644
--- a/staging_vespalib/src/vespa/vespalib/util/foreground_thread_executor.h
+++ b/staging_vespalib/src/vespa/vespalib/util/foreground_thread_executor.h
@@ -23,7 +23,7 @@ public:
}
size_t getNumThreads() const override { return 0; }
ExecutorStats getStats() override {
- return ExecutorStats(ExecutorStats::QueueSizeT(), _accepted.load(std::memory_order_relaxed), 0);
+ return ExecutorStats(ExecutorStats::QueueSizeT(), _accepted.load(std::memory_order_relaxed), 0, 0);
}
void setTaskLimit(uint32_t taskLimit) override { (void) taskLimit; }
uint32_t getTaskLimit() const override { return std::numeric_limits<uint32_t>::max(); }