Tor Lillqvist 605682521b Rework the g_poll() implementation on Windows to match poll() semantics
2008-08-21  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c: Rework the g_poll() implementation on Windows to
	match poll() semantics more closely. This makes the test program
	in bug #468910 behave better and doesn't seem to break anything
	else.

	If polling several GPollFDs, i.e. messages and/or waitable
	handles, first check if one or several of them are in the
	signalled state right away, and return indication for all that are
	in that case.

	If not, then poll with timeout and indicate only the single one
	that the Win32 wait function tells us as before.

	Remove unnecessary ifdefs, as we always have G_MAIN_POLL_DEBUG
	defined on Windows.

	Initialise g_main_poll_debug in g_main_context_new() so we have it
	before testing it in one case.

	Don't add several copies of a handle in the array of handles to
	wait for. The documentation says this is not allowed, although it
	did seem to work fine in practise. But do as the documentations
	says anyway.


svn path=/trunk/; revision=7375
2008-08-21 02:27:13 +00:00
..
2008-02-23 05:06:18 +00:00
2006-09-10 05:50:50 +00:00
2003-09-07 22:36:58 +00:00
2008-06-15 00:03:54 +00:00
2007-11-25 06:05:06 +00:00
2008-08-01 18:30:37 +00:00
2008-06-16 16:41:01 +00:00
2008-08-20 01:30:31 +00:00
2008-06-12 03:55:32 +00:00
2007-08-20 23:34:35 +00:00
2008-07-28 16:52:15 +00:00
2007-08-22 19:31:27 +00:00
2008-03-10 16:50:13 +00:00
2008-08-04 18:48:01 +00:00
2008-08-05 01:23:16 +00:00
2008-06-22 16:32:18 +00:00