http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53238
--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-19 23:55:50 UTC --- (In reply to comment #16) > Will this work any better as a solution > than my suggestion in comment #4? No, it will fail on any non-posix platform, even if it provides a timed-lock function on a mutex. Just checking for _WIN32 doesn't help all the other platforms that are not posix and are not win32 Between comment 5 (with missing ;;) and comment 14 it should work, I think.