summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/executor/threadstackexecutor_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib/src/tests/executor/threadstackexecutor_test.cpp')
-rw-r--r--vespalib/src/tests/executor/threadstackexecutor_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/tests/executor/threadstackexecutor_test.cpp b/vespalib/src/tests/executor/threadstackexecutor_test.cpp
index 3e092ef145f..db3c4628d2f 100644
--- a/vespalib/src/tests/executor/threadstackexecutor_test.cpp
+++ b/vespalib/src/tests/executor/threadstackexecutor_test.cpp
@@ -17,12 +17,12 @@ struct MyTask : public Executor::Task {
static std::atomic<uint32_t> deleteCnt;
MyTask(Gate &g, CountDownLatch &l) : gate(g), latch(l) {}
void run() override {
- runCnt++;
+ runCnt.fetch_add(1);
latch.countDown();
gate.await();
}
~MyTask() {
- deleteCnt++;
+ deleteCnt.fetch_add(1);
}
static void resetStats() {
runCnt = 0;