[Wayland-bugs] [Bug 763852] gdk/wayland: event source is not multi-thread aware
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Fri Mar 18 08:52:57 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=763852
Matthew Waters (ystreet00) <ystreet00 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #324237|needs-work |none
status| |
Attachment #324237|0 |1
is obsolete| |
--- Comment #5 from Matthew Waters (ystreet00) <ystreet00 at gmail.com> ---
Created attachment 324239
--> https://bugzilla.gnome.org/attachment.cgi?id=324239&action=edit
gdk/wayland: use the multi-thread safe wayland dispatching API
(In reply to Jonas Ã…dahl from comment #4)
> Review of attachment 324237 [details] [review]:
>
> Sorry, missed another issue in the first version.
>
> ::: gdk/wayland/gdkeventsource.c
> @@ +69,1 @@
> if (wl_display_flush (display->wl_display) < 0)
>
> Out of scope for this patch, but maybe in scope for the bug,
> wl_display_flush() may return EAGAIN if it didn't manage to flush
> everything, meaning we may theoretically still dead-lock if we end up
> waiting for some reply to some request idling in our queue.
Fixing that would require polling with G_IO_OUT as well to check writability.\
and then state tracking for that.
> @@ +81,2 @@
> if (source->display->event_pause_count > 0)
> return _gdk_event_queue_find_first (source->display) != NULL;
>
> Oops. Need to call cancel() here as well, since we prepared but didn't read.
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160318/b424f4c9/attachment.html>
More information about the wayland-bugs
mailing list