diff options
author | Jamey Sharp <jamey@minilop.net> | 2006-04-20 11:51:01 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2006-04-20 11:51:01 -0700 |
commit | 771761ccaad31d029d470dde84279e94494310b6 (patch) | |
tree | bb8cd4b547f0ee75f1a90a18dc16e3e9908a1fdc /src/xcb_out.c | |
parent | 8953a14f2b1518042ed0745574e22fa2adfb6cac (diff) |
Minor performance improvement: do not call _xcb_in_expect_reply unless it is needed. It is not often needed.
Diffstat (limited to 'src/xcb_out.c')
-rw-r--r-- | src/xcb_out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xcb_out.c b/src/xcb_out.c index eb41e59..2667973 100644 --- a/src/xcb_out.c +++ b/src/xcb_out.c @@ -165,7 +165,8 @@ unsigned int XCBSendRequest(XCBConnection *c, int flags, struct iovec *vector, c request = ++c->out.request; assert(request != 0); - _xcb_in_expect_reply(c, request, workaround, flags); + if(workaround != WORKAROUND_NONE || flags != 0) + _xcb_in_expect_reply(c, request, workaround, flags); if(!req->isvoid) c->in.request_expected = c->out.request; |