summaryrefslogtreecommitdiff
path: root/src/xcb_out.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-11-16 19:36:08 -0500
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-11-16 19:36:08 -0500
commitbaae5826a6f51490e842be931c8b9f76086c4d98 (patch)
tree3a5feb213331d09d0d0ff64da2bc4a123232587b /src/xcb_out.c
parentc3136d18321df31caa7f582d475132c2e02155de (diff)
parent46413cd85ee4f3d51a3a3e1d8ee13bc5fa6c2d5d (diff)
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xcb/libxcb
Diffstat (limited to 'src/xcb_out.c')
-rw-r--r--src/xcb_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xcb_out.c b/src/xcb_out.c
index caf8ef5..60226e5 100644
--- a/src/xcb_out.c
+++ b/src/xcb_out.c
@@ -190,7 +190,7 @@ unsigned int xcb_send_request(xcb_connection_t *c, int flags, struct iovec *vect
_xcb_lock_io(c);
/* wait for other writing threads to get out of my way. */
while(c->out.writing)
- pthread_cond_wait(&c->out.cond, &c->iolock);
+ _xcb_wait_io(c, &c->out.cond);
request = ++c->out.request;
/* send GetInputFocus (sync) when 64k-2 requests have been sent without
@@ -297,7 +297,7 @@ int _xcb_out_flush_to(xcb_connection_t *c, unsigned int request)
return _xcb_out_send(c, &vec_ptr, &count);
}
while(c->out.writing)
- pthread_cond_wait(&c->out.cond, &c->iolock);
+ _xcb_wait_io(c, &c->out.cond);
assert(XCB_SEQUENCE_COMPARE(c->out.request_written, >=, request));
return 1;
}