[Wayland-bugs] [Bug 763852] gdk/wayland: event source is not multi-thread aware

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Tue May 3 00:52:53 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=763852

Jonas Ådahl <jadahl at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #325118|none                        |needs-work
             status|                            |

--- Comment #11 from Jonas Ådahl <jadahl at gmail.com> ---
Review of attachment 325118:

I think it looks fine except for one detail which I haven't managed to find
clear documentation about.

::: gdk/wayland/gdkeventsource.c
@@ +56,3 @@
+   * wl_display_read_events() or wl_display_cancel_read()
+   * (in gdk_event_source_check() */
+  g_assert (source->reading == FALSE);

I can't find any documentation saying a non-mainloop caller may never prepare()
only once before calling check(), so I think this assert is a bit dangerous. In
other words, I think we should maybe change this assert to if (source->reading)
return FALSE;

-- 
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/20160503/3977b622/attachment-0001.html>


More information about the wayland-bugs mailing list