diff options
author | Uli Schlachter <psychon@znc.in> | 2013-11-18 19:49:41 +0100 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2013-11-18 19:49:41 +0100 |
commit | 5d1dbb468bb0f834eaa8adea6daf6729808ca429 (patch) | |
tree | 753ea11c037a69347af09b57b3751b8b4cecf0ba /src/xcbint.h | |
parent | c7c5b710f2cc0782412c9e159986c96b52aa0d02 (diff) |
Revert "fix deadlock with xcb_take_socket/return_socket v3"
This reverts commit 9ae84ad187e2ba440c40f44b8eb21c82c2fdbf12.
After this patch was merged, there were complaints about it not being a good
idea. Revert this for now until we can agree on this.
References: http://lists.freedesktop.org/archives/xcb/2013-June/008340.html
Signed-off-by: Uli Schlachter <psychon@znc.in>
Conflicts:
src/xcbint.h
Diffstat (limited to 'src/xcbint.h')
-rw-r--r-- | src/xcbint.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xcbint.h b/src/xcbint.h index 5c904fb..b25f03b 100644 --- a/src/xcbint.h +++ b/src/xcbint.h @@ -79,8 +79,6 @@ void *_xcb_map_remove(_xcb_map *q, unsigned int key); /* xcb_out.c */ -typedef void (*xcb_return_socket_func_t)(void *closure); - #if HAVE_SENDMSG #define XCB_MAX_PASS_FD 16 @@ -95,9 +93,10 @@ typedef struct _xcb_out { pthread_cond_t cond; int writing; - xcb_return_socket_func_t return_socket; + pthread_cond_t socket_cond; + void (*return_socket)(void *closure); void *socket_closure; - unsigned int socket_seq; + int socket_moving; char queue[XCB_QUEUE_BUFFER_SIZE]; int queue_len; |