diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2023-02-15 13:10:31 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2023-02-15 15:27:19 +0000 |
commit | 070fc34cee07db023824c76995bba43f2262d6c1 (patch) | |
tree | f30d42ff4c97cafcb3dd64e025c7f687366784c4 /storage | |
parent | 5780a48616db40c6eb5ae12293b115fbbc44b080 (diff) |
use std::thread directly
also add very simple ThreadPool class to run multiple threads at once
make an effort to only join once
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/tests/persistence/filestorage/operationabortingtest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/tests/persistence/filestorage/operationabortingtest.cpp b/storage/src/tests/persistence/filestorage/operationabortingtest.cpp index d7ecb1f30f1..85816c3ad3e 100644 --- a/storage/src/tests/persistence/filestorage/operationabortingtest.cpp +++ b/storage/src/tests/persistence/filestorage/operationabortingtest.cpp @@ -296,7 +296,7 @@ TEST_F(OperationAbortingTest, wait_for_current_operation_completion_for_aborted_ auto abortCmd = makeAbortCmd(abortSet); SendTask sendTask(abortCmd, *_queueBarrier, c.top); - auto thread = vespalib::Thread::start(sendTask, test_thread); + auto thread = vespalib::thread::start(sendTask, test_thread); LOG(debug, "waiting for threads to reach barriers"); _queueBarrier->await(); |