mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-09 18:54:04 +02:00
Improve last entry
svn path=/trunk/; revision=7380
This commit is contained in:
11
ChangeLog
11
ChangeLog
@@ -7,8 +7,11 @@
|
|||||||
|
|
||||||
If polling several GPollFDs, i.e. messages and/or waitable
|
If polling several GPollFDs, i.e. messages and/or waitable
|
||||||
handles, first check if one or several of them are in the
|
handles, first check if one or several of them are in the
|
||||||
signalled state right away, and return indication for all that are
|
signalled state right away, with timeout zero. Return indication
|
||||||
in that case.
|
for all that are in that case. To check if several handles are
|
||||||
|
signalled, we have to call the WaitForMultipleObjectsEx() function
|
||||||
|
repeatedly, each time removing the handle it indicated was
|
||||||
|
signalled last time, until WAIT_TIMEOUT is returned.
|
||||||
|
|
||||||
If not, then poll with timeout and indicate only the single one
|
If not, then poll with timeout and indicate only the single one
|
||||||
that the Win32 wait function tells us as before.
|
that the Win32 wait function tells us as before.
|
||||||
@@ -19,9 +22,9 @@
|
|||||||
Initialise g_main_poll_debug in g_main_context_new() so we have it
|
Initialise g_main_poll_debug in g_main_context_new() so we have it
|
||||||
before testing it in one case.
|
before testing it in one case.
|
||||||
|
|
||||||
Don't add several copies of a handle in the array of handles to
|
Don't put several copies of a handle in the array of handles to
|
||||||
wait for. The documentation says this is not allowed, although it
|
wait for. The documentation says this is not allowed, although it
|
||||||
did seem to work fine in practise. But do as the documentations
|
did seem to work fine in practise. But do as the documentation
|
||||||
says anyway.
|
says anyway.
|
||||||
|
|
||||||
2008-08-20 Tor Lillqvist <tml@novell.com>
|
2008-08-20 Tor Lillqvist <tml@novell.com>
|
||||||
|
Reference in New Issue
Block a user