summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/executor/blocking_executor_stress.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-08 21:57:35 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-08 21:57:35 +0000
commita51725cfc47c215785ac4b24c6e18bf3d5ea475b (patch)
tree42abc8a4ac1783f0816ffcdd7b85c30e07e7e3d3 /vespalib/src/tests/executor/blocking_executor_stress.cpp
parenta4d0cd759eed68318afebbaddbc4baddc70416e2 (diff)
- GC the last usages of vespalib::Lock.
- Now it is only vespalib::Monitor left
Diffstat (limited to 'vespalib/src/tests/executor/blocking_executor_stress.cpp')
-rw-r--r--vespalib/src/tests/executor/blocking_executor_stress.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/vespalib/src/tests/executor/blocking_executor_stress.cpp b/vespalib/src/tests/executor/blocking_executor_stress.cpp
index b753dc69373..27367f6677c 100644
--- a/vespalib/src/tests/executor/blocking_executor_stress.cpp
+++ b/vespalib/src/tests/executor/blocking_executor_stress.cpp
@@ -2,7 +2,6 @@
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/util/blockingthreadstackexecutor.h>
#include <vespa/vespalib/util/executor.h>
-#include <vespa/vespalib/util/sync.h>
#include <atomic>
using namespace vespalib;
@@ -26,7 +25,7 @@ struct MyTask : Executor::Task {
size_t size;
size_t data;
MyTask(size_t size_in) : size(size_in), data(0) {}
- virtual void run() override {
+ void run() override {
data += do_stuff(size);
++tasks_run;
data += do_stuff(size);