aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/vespa/vespalib/util/threadstackexecutorbase.cpp')
-rw-r--r--vespalib/src/vespa/vespalib/util/threadstackexecutorbase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.cpp b/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.cpp
index 32e47f366cc..f80a5b4ce32 100644
--- a/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.cpp
+++ b/vespalib/src/vespa/vespalib/util/threadstackexecutorbase.cpp
@@ -203,12 +203,12 @@ ThreadStackExecutorBase::num_idle_workers() const
return _workers.size();
}
-ThreadStackExecutorBase::Stats
+ExecutorStats
ThreadStackExecutorBase::getStats()
{
std::unique_lock guard(_lock);
- Stats stats = _stats;
- _stats = Stats();
+ ExecutorStats stats = _stats;
+ _stats = ExecutorStats();
_stats.queueSize.add(_taskCount);
return stats;
}