Commit 8d277301 authored by Dominik Charousset's avatar Dominik Charousset

Merge branch 'topic/neverlord/thread-pool-test'

parents 9e6e8325 2f0c9179
......@@ -86,9 +86,10 @@ SCENARIO("private threads rerun their resumable when it returns resume_later") {
THEN("t calls resume until f returns something other than resume_later") {
using namespace std::literals::chrono_literals;
sys.release_private_thread(t);
while (f.runs != 2u)
std::this_thread::sleep_for(1ms);
while (sys.detached_actors() != 0)
std::this_thread::sleep_for(1ms);
CHECK_EQ(f.runs, 2u);
CHECK_EQ(f.refs_added, 0u);
CHECK_EQ(f.refs_released, 1u);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment