aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/vespa/vespalib/util/thread.h')
-rw-r--r--vespalib/src/vespa/vespalib/util/thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/util/thread.h b/vespalib/src/vespa/vespalib/util/thread.h
index d919b8f2ab7..f331f1870c7 100644
--- a/vespalib/src/vespa/vespalib/util/thread.h
+++ b/vespalib/src/vespa/vespalib/util/thread.h
@@ -32,6 +32,7 @@ public:
_threads.reserve(_threads.size() + 1);
_threads.emplace_back(std::forward<F>(f), std::forward<Args>(args)...);
};
+ size_t size() const { return _threads.size(); }
void join() {
for (auto &thread: _threads) {
thread.join();