diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-09 23:39:31 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-09 23:39:31 +0000 |
commit | 3b272c7ddbbe55d4149fd160532fbc8f691867b4 (patch) | |
tree | ee5aecdc46933c431f165e0af8aafcabb6141a48 /libstdc++-v3/src | |
parent | cae1703940869ec8d7cec712024c7e2e4dd2cb86 (diff) | |
download | gcc-3b272c7ddbbe55d4149fd160532fbc8f691867b4.tar.gz |
PR libstdc++/59680
* src/c++11/thread.cc (__sleep_for): Fix call to ::sleep.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206504 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/c++11/thread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/c++11/thread.cc b/libstdc++-v3/src/c++11/thread.cc index d7c3fb10e8c..49aacb5a96d 100644 --- a/libstdc++-v3/src/c++11/thread.cc +++ b/libstdc++-v3/src/c++11/thread.cc @@ -183,7 +183,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ::usleep(__us); } # else - ::sleep(__s.count() + (__ns >= 1000000)); + ::sleep(__s.count() + (__ns.count() >= 1000000)); # endif #elif defined(_GLIBCXX_HAVE_WIN32_SLEEP) unsigned long ms = __ns.count() / 1000000; |