https://bugs.freedesktop.org/show_bug.cgi?id=91767
--- Comment #4 from Jonas Ã…dahl <[email protected]> --- (In reply to Marek Chalupa from comment #3) > > 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 Exactly. So mixing them is fine, as long as you don't call dispatch() between prepare() and cancel()/read() calls. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ wayland-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-bugs
