Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2009-07-18 18:41:23 +0400
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2009-07-18 18:41:23 +0400
commit52e4653d43a1a3e9eab7316ed735f1f1d83f3fdf (patch)
treed26303e720c54212819e6fbbfec3f62ec057b3e8 /winsup/mingw
parentb5fb6b0dc3e12cdc746540a23eeb3e218aad9427 (diff)
2009-07-18 Jeff Lu <jll544@yahoo.com>
* mingwex/usleep.c: round up to next ms
Diffstat (limited to 'winsup/mingw')
-rw-r--r--winsup/mingw/ChangeLog4
-rwxr-xr-xwinsup/mingw/mingwex/usleep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index d5313bc5b..50c426364 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-18 Jeff Lu <jll544@yahoo.com>
+
+ * mingwex/usleep.c: round up to next ms
+
2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c
diff --git a/winsup/mingw/mingwex/usleep.c b/winsup/mingw/mingwex/usleep.c
index b322a7703..c059c0691 100755
--- a/winsup/mingw/mingwex/usleep.c
+++ b/winsup/mingw/mingwex/usleep.c
@@ -34,7 +34,7 @@ int __cdecl usleep(useconds_t useconds)
if(useconds >= 1000000)
return EINVAL;
- Sleep(useconds / 1000);
+ Sleep((useconds + 999) / 1000);
return 0;
}