• Ole André Vadla Ravnås's avatar
    test-io-stream-common: Avoid CPU starvation by yielding · 21690901
    Ole André Vadla Ravnås authored
    Busy-looping is not a good idea, especially not when run under Valgrind,
    where such a thread may result in well-behaved threads running thousands
    of times slower. While passing --fair-sched=yes to Valgrind avoids the
    issue, it's still better to make our busy-looping less aggressive.
    21690901
test-io-stream-common.c 17.1 KB