[Bug libstdc++/58038] std::this_thread::sleep_until can cause inifinite sleep

dan at stahlke dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 16 04:11:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58038

Dan Stahlke <dan at stahlke dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dan at stahlke dot org

--- Comment #9 from Dan Stahlke <dan at stahlke dot org> ---
It seems the same problem affects sleep_for, with negative values of magnitude
at least one second:

    std::this_thread::sleep_for(std::chrono::seconds(-1));

Tested with Fedora's libstdc++ 4.8.3.



More information about the Gcc-bugs mailing list