[Wayland-bugs] [Bug 91767] wl_display_dispatch(_queue) documentation about thread safeness is probably wrong
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Sep 3 01:28:46 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=91767
--- Comment #3 from Marek Chalupa <mchqwerty at gmail.com> ---
> If you call prepare + poll + read in thread A and
> wl_display_dispatch_queue() in another thread B (dispatching two different
> queues), the fd could become readable before wl_display_dispatch_queue()
> calls poll
> (http://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-client.
> c#n1574) and whole prepare+read sequence could run before it, queing events
> into both queues. After prepare+read queued events, thread B goes to sleep
> in poll with events hanging in the queue.
Oh, wait, dispatching queue and increasing reader_count is atomical in
wl_display_dispatch_queue(), so the thread A should not events, so it should
probably work
--
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/20150903/bcaf8642/attachment-0001.html>
More information about the wayland-bugs
mailing list