mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-02 09:46:14 +00:00
test: Fix typo
This commit is contained in:
parent
fac932698f
commit
fa18be2f2b
@ -426,7 +426,7 @@ BOOST_AUTO_TEST_CASE(stop_active_wait_drains_queue)
|
|||||||
}
|
}
|
||||||
BOOST_CHECK_EQUAL(threadPool.WorkQueueSize(), num_tasks);
|
BOOST_CHECK_EQUAL(threadPool.WorkQueueSize(), num_tasks);
|
||||||
|
|
||||||
// Delay release so Stop() drain all tasks from the calling thread
|
// Delay release so Stop() drains all tasks from the calling thread
|
||||||
std::thread unblocker([&blocker, &threadPool]() {
|
std::thread unblocker([&blocker, &threadPool]() {
|
||||||
while (threadPool.WorkQueueSize() > 0) {
|
while (threadPool.WorkQueueSize() > 0) {
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user