This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/66803] std::this_thread::sleep_for gets interrupted by signals.
- From: "brootux at freenet dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Jun 2017 13:49:25 +0000
- Subject: [Bug libstdc++/66803] std::this_thread::sleep_for gets interrupted by signals.
- Auto-submitted: auto-generated
- References: <bug-66803-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66803
--- Comment #3 from brootux at freenet dot de ---
workaround until fixed i.e. for 1 second:
auto wakeup_time = std::chrono::system_clock::now() + std::chrono::seconds(1);
while (std::chrono::system_clock::now() < wakeup_time) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}