diff options
Diffstat (limited to 'vespalib/src/vespa/vespalib/util/thread_bundle.cpp')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/thread_bundle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vespalib/src/vespa/vespalib/util/thread_bundle.cpp b/vespalib/src/vespa/vespalib/util/thread_bundle.cpp index 9f953abfce7..d47ffb2f3ef 100644 --- a/vespalib/src/vespa/vespalib/util/thread_bundle.cpp +++ b/vespalib/src/vespa/vespalib/util/thread_bundle.cpp @@ -9,10 +9,10 @@ ThreadBundle & ThreadBundle::trivial() { struct TrivialThreadBundle : ThreadBundle { size_t size() const override { return 1; } - void run(const std::vector<Runnable*> &targets) override { - if (targets.size() == 1) { + void run(Runnable* const* targets, size_t cnt) override { + if (cnt == 1) { targets[0]->run(); - } else if (targets.size() > 1) { + } else if (cnt > 1) { throw IllegalArgumentException("too many targets"); } }; |