libretro/RetroArch — pull request #717 by OV2 (2014-05-29 14:59:18+00:00)
Title: win32: prevent lost wakeups

Prevents lost wakeups causing the soft filters to lockup. The filter loop could signal its condition and then immediately regain the lock and wait on this same condition, causing it to be lost for the main thread waiting on it to finish.

This could possibly still happen if kernel APCs occur, but should not be an issue at the moment.

I tried with blargg's and left it running for about an hour with no lockup.