Re: Is this a bug of GMainLoop?



> Yu's patch, to *current* trunk giowin32.c (I just committed a change
> that improved the G_IO_WIN32_DEBUG output a bit) is as follows. Please
> test it, all who can. (It should be trivial to apply it manually to
> the glib-2-16 branch, too.)

Hello, anyone ? Please...

--tml

> Index: glib/giowin32.c
> ===================================================================
> --- glib/giowin32.c     (revision 6898)
> +++ glib/giowin32.c     (working copy)
> @@ -849,6 +849,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]