This fixes a logic error in the futex-based timed wait. Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * include/bits/atomic_timed_wait.h (__platform_wait_until_impl): Return false for ETIMEDOUT and true otherwise. Tested x86_64-linux. I'm not seeing any tests fail as a result of this, btu it does seem to be incorrect. Please check my working.