Fix a possible race condition when shutting down WinMM devices
commit47c8c15878fbe66f8c3f20588c807388f53dd847
authorChris Robinson <chris.kcat@gmail.com>
Fri, 20 Jan 2012 11:02:21 +0000 (20 03:02 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Fri, 20 Jan 2012 11:02:21 +0000 (20 03:02 -0800)
tree5cba7c025ab1e6b38c3ce711eed2de95350b92c3
parentfa364352905d4e0ea012bace40872c84daabc8e2
Fix a possible race condition when shutting down WinMM devices

If the processing threads are interrupted between the shutdown check and re-
adding the buffer back to the device, the device can be left with a buffer that
will get unprepared and freed while in use.
Alc/backends/winmm.c