summaryrefslogtreecommitdiff
path: root/src/xcb_xlib.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-02-23 15:29:40 -0800
committerJamey Sharp <jamey@minilop.net>2006-02-23 15:29:40 -0800
commit26ac6292ba0535ac3747d23f2f4d284c4b5f42ba (patch)
tree8fa52d5f1fd007af4abfca3d7fa501d227e85920 /src/xcb_xlib.c
parenta736674943295245ccb90865c13d2b75dc6ecccb (diff)
Minor performance fix: Change the contract on XCBGetRequestSent so that it does not waste time re-locking. This is for Xlib, and Xlib has already locked.
Diffstat (limited to 'src/xcb_xlib.c')
-rw-r--r--src/xcb_xlib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/xcb_xlib.c b/src/xcb_xlib.c
index 8cc6837..61518f7 100644
--- a/src/xcb_xlib.c
+++ b/src/xcb_xlib.c
@@ -28,11 +28,7 @@
unsigned int XCBGetRequestSent(XCBConnection *c)
{
- unsigned int ret;
- pthread_mutex_lock(&c->iolock);
- ret = c->out.request;
- pthread_mutex_unlock(&c->iolock);
- return ret;
+ return c->out.request;
}
pthread_mutex_t *XCBGetIOLock(XCBConnection *c)