mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-04-01 01:15:14 +08:00
Add a thread yield to topic monitor torture test
This speeds up the test by about 5 msec.
This commit is contained in:
parent
4b9a096cf2
commit
e423a58e24
@ -6093,6 +6093,7 @@ static void test_topic_monitor_torture() {
|
||||
while (completed.load(std::memory_order_relaxed) < thread_count) {
|
||||
post_count += 1;
|
||||
monitor.post(t1);
|
||||
std::this_thread::yield();
|
||||
}
|
||||
for (auto &t : threads) t.join();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user