[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xcb
Subject: [Xcb] [Bug 40372] New: Thread hangs in xcb_wait_for_reply() if
From: bugzilla-daemon () freedesktop ! org
Date: 2011-08-25 12:28:07
Message-ID: bug-40372-13485 () http ! bugs ! freedesktop ! org/
[Download RAW message or body]
https://bugs.freedesktop.org/show_bug.cgi?id=40372
Summary: Thread hangs in xcb_wait_for_reply() if another thread
calls xcb_poll_for_event()
Product: XCB
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Library
AssignedTo: xcb@lists.freedesktop.org
ReportedBy: psychon@znc.in
QAContact: xcb@lists.freedesktop.org
Created an attachment (id=50561)
--> (https://bugs.freedesktop.org/attachment.cgi?id=50561)
Test case causing hang
Hi,
thanks to sroedal who described this problem on IRC, I came up with the
attached test case. The thread doing GetInputFocus requests here will hang in
recv() almost instantly.
This happens because xcb_poll_for_event() can cause two threads to read data
from the connection because this function doesn't synchronize with anything
else. This means that the main thread will read the reply, but the thread
waiting for the reply will still be struck in recv().
Uli
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
Xcb mailing list
Xcb@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xcb
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic