[Xcb] [PATCH 2/3] Do not block when calling reply() multiple times.
Peter Harris
pharris at opentext.com
Mon Feb 1 14:41:02 PST 2010
On 2010-01-29 02:03, Jamey Sharp wrote:
> Let me suggest an alternate strategy that works for all requests: keep
> a queue of requests that your binding has issued to XCB. Then, when
> the application forces a reply, also force all previous replies.
This feels like duplication of effort to me. XCB already keeps a queue
of requests that have been issued. It already tracks which replies it
should discard (ignore) in the future, too.
Therefore, what do you think of the attached? It adds
xcb_discard_reply(), which does free(wait_for_reply(cookie, NULL))
except it doesn't block when the reply hasn't been received yet.
src/xcb.h | 12 ++++++++
src/xcb_in.c | 71 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 83 insertions(+), 0 deletions(-)
Peter Harris
--
Open Text Connectivity Solutions Group
Peter Harris http://connectivity.opentext.com/
Research and Development Phone: +1 905 762 6001
pharris at opentext.com Toll Free: 1 877 359 4866
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Support-xcb_discard_reply.patch
Url: http://lists.freedesktop.org/archives/xcb/attachments/20100201/9bd5f1e6/attachment.ksh
More information about the Xcb
mailing list