glib r6794 - in trunk: . glib



Author: tml
Date: Mon Mar 31 19:05:47 2008
New Revision: 6794
URL: http://svn.gnome.org/viewvc/glib?rev=6794&view=rev

Log:
2008-03-31  Tor Lillqvist  <tml novell com>

	* glib/gmain.c (g_poll): Improve fix for #525192 below: Use
	SleepEx() so that the sleep is alertable. Thanks to John
	Ehresman.



Modified:
   trunk/ChangeLog
   trunk/glib/gmain.c

Modified: trunk/glib/gmain.c
==============================================================================
--- trunk/glib/gmain.c	(original)
+++ trunk/glib/gmain.c	Mon Mar 31 19:05:47 2008
@@ -388,7 +388,7 @@
 	ready = WAIT_FAILED;
       else
 	{
-	  Sleep (timeout);
+	  SleepEx (timeout, TRUE);
 	  ready = WAIT_TIMEOUT;
 	}
     }



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