[glib/glib-2-28] Use g_usleep() for portability, bug #644465



commit b6027dbcc001a73aa123e79ddd12e946d8997fd9
Author: Tor Lillqvist <tml iki fi>
Date:   Fri Mar 11 10:19:42 2011 +0200

    Use g_usleep() for portability, bug #644465

 glib/tests/timeout.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/timeout.c b/glib/tests/timeout.c
index 63b7503..cdf5a11 100644
--- a/glib/tests/timeout.c
+++ b/glib/tests/timeout.c
@@ -61,7 +61,7 @@ test_func (gpointer data)
   /* Make the timeout take up to 0.1 seconds.
    * We should still get scheduled for the next second.
    */
-  usleep (count * 10000);
+  g_usleep (count * 10000);
 
   if (count < 8)
     return TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]