[Xcb] [Bug 41870] XSync never return , when XNextEvent runs in separate thread

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 30 08:53:11 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=41870

Uli Schlachter <psychon at znc.in> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
         AssignedTo|arvind.umrao at oracle.com     |xorg-team at lists.x.org
          QAContact|xcb at lists.freedesktop.org   |xorg-team at lists.x.org
            Product|XCB                         |xorg
          Component|Library                     |Lib/Xlib

--- Comment #1 from Uli Schlachter <psychon at znc.in> 2012-01-30 08:53:11 PST ---
Reassigning to xorg/Library since it's Xlib which hangs.

For where it hangs:
xcb_io.c, line 615, function _XReply() contains:

            /* If some thread is already waiting for events,
             * it will get the first one. That thread must
             * process that event before we can continue. */
            /* FIXME: That event might be after this reply,
             * and might never even come--or there might be
             * multiple threads trying to get events. */
            while(dpy->xcb->event_waiter)
            { /* need braces around ConditionWait */
                ConditionWait(dpy, dpy->xcb->event_notify);
            }

This comment is correct. The event waiter really is waiting for an event but
none is coming in.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Xcb mailing list