[Wayland-bugs] [Bug 83304] wl_display_roundtrip() seems not thread-safe
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Sep 1 12:39:04 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=83304
--- Comment #4 from Pekka Paalanen <ppaalanen at gmail.com> ---
(In reply to comment #3)
> Pekka, the mainloop is simplistic and tries to follow the documentation:
> https://git.videolan.org/?p=vlc.git;a=blob;f=modules/video_output/wl/
> shell_surface.c;hb=2.2.0-git-662-ge08f4fc#l48
That looks fine.
> (Admittedly the cleanup path may look unorthodox, but you can ignore it as
> the deadlock predates it.) The deadlock is there, right below FIXME:
>
> https://git.videolan.org/?p=vlc.git;a=blob;f=modules/video_output/wl/shm.c;
> hb=2.2.0-git-662-ge08f4fc#l184
That is broken like I explained above, it runs in a different thread, doesn't
it?
> I tried to use wl_event_queue, but it gave me crashes in the mainloop after
> destroying the supposedly no longer used queue. I guess I don't know
> how/when it is safe to delete a queue.
Can you show the code for that? There likely are several details to get right,
like assigning proxies to queues, and when to create and destroy queues.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20140901/6d16438f/attachment.html>
More information about the Wayland-bugs
mailing list