issues
search
mozilla
/
cubeb
Cross platform audio library
ISC License
439
stars
124
forks
source link
wasapi: Rework emergency_bailout mechanism.
#701
Closed
kinetiknz
closed
2 years ago
kinetiknz
commented
2 years ago
Rather than "leak" an atomic bool to the stuck render thread, we instead "leak" the entire stream and leave the render thread to clean up.
Render thread now checks
handle_emergency_bailout()
, which frees the stream and exits the render thread in bailout condititions.
Removed
thread_ready_event
, since it's no longer needed.
handle_emergency_bailout()
, which frees the stream and exits the render thread in bailout condititions.thread_ready_event
, since it's no longer needed.