glib r7220 - in trunk: . glib
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7220 - in trunk: . glib
- Date: Sun, 20 Jul 2008 20:44:39 +0000 (UTC)
Author: tml
Date: Sun Jul 20 20:44:39 2008
New Revision: 7220
URL: http://svn.gnome.org/viewvc/glib?rev=7220&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/glib/giowin32.c
Modified: trunk/glib/giowin32.c
==============================================================================
--- trunk/glib/giowin32.c (original)
+++ trunk/glib/giowin32.c Sun Jul 20 20:44:39 2008
@@ -733,6 +733,13 @@
if (channel->debug)
g_print ("\n setting 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]