mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Patch from Yu Kuan that makes watched sockets behave much better. See
2008-07-20 Tor Lillqvist <tml@novell.com> * glib/giowin32.c (g_io_win32_prepare): Patch from Yu Kuan that makes watched sockets behave much better. See gtk-devel-list archives from May for the (unfortunately rather meager) discussion. This patch fixes the presented simple test program, which reasonably could be expected to work. svn path=/trunk/; revision=7220
This commit is contained in:
parent
d0008f0070
commit
55790836fb
@ -1,3 +1,11 @@
|
|||||||
|
2008-07-20 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* glib/giowin32.c (g_io_win32_prepare): Patch from Yu Kuan that
|
||||||
|
makes watched sockets behave much better. See gtk-devel-list
|
||||||
|
archives from May for the (unfortunately rather meager)
|
||||||
|
discussion. This patch fixes the presented simple test program,
|
||||||
|
which reasonably could be expected to work.
|
||||||
|
|
||||||
2008-07-18 Matthias Clasen <mclasen@redhat.com>
|
2008-07-18 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* NEWS: Updates
|
* NEWS: Updates
|
||||||
|
@ -733,6 +733,13 @@ g_io_win32_prepare (GSource *source,
|
|||||||
if (channel->debug)
|
if (channel->debug)
|
||||||
g_print ("\n setting last_events=0");
|
g_print ("\n setting last_events=0");
|
||||||
channel->last_events = 0;
|
channel->last_events = 0;
|
||||||
|
|
||||||
|
if ((event_mask & FD_WRITE) && !channel->write_would_have_blocked)
|
||||||
|
{
|
||||||
|
if (channel->debug)
|
||||||
|
g_print (" WSASetEvent(%#x)", watch->pollfd.fd);
|
||||||
|
WSASetEvent ((WSAEVENT) watch->pollfd.fd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user