• Max Kellermann's avatar
    don't busy wait for the decoder thread · 726c6e86
    Max Kellermann authored
    Busy wait loops are a bad thing, especially when the response time can
    be very long - busy waits eat a lot of CPU, and thus slow down the
    other thread.  Since the other thread will notify us when it's ready,
    we can use notify_wait() instead.
    726c6e86
decode.c 14.8 KB