[Bug libstdc++/60421] std::this_thread::sleep_for doesn't sleep for all arguments
plasmahh at gmx dot net
gcc-bugzilla@gcc.gnu.org
Wed Mar 5 10:50:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60421
Dennis Lubert <plasmahh at gmx dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |plasmahh at gmx dot net
--- Comment #1 from Dennis Lubert <plasmahh at gmx dot net> ---
Note that for me to reproduce this, _GLIBCXX_USE_NANOSLEEP must be defined. In
that case it uses directly the nanosleep call, casting the uint64max value to
time_t which is signed (which is unfortunately not visible in strace), gets
negative and this is what the nonsleep manpage says for glibc:
EINVAL The value in the tv_nsec field was not in the range 0 to
999999999 or tv_sec was negative.
More information about the Gcc-bugs
mailing list