Add a private connection shutdown method for error cases.
This commit is contained in:
parent
7f71bf9c0f
commit
79e3227022
|
@ -247,6 +247,11 @@ void XCBDisconnect(XCBConnection *c)
|
||||||
|
|
||||||
/* Private interface */
|
/* Private interface */
|
||||||
|
|
||||||
|
void _xcb_conn_shutdown(XCBConnection *c)
|
||||||
|
{
|
||||||
|
c->has_error = 1;
|
||||||
|
}
|
||||||
|
|
||||||
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count)
|
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -158,6 +158,7 @@ struct XCBConnection {
|
||||||
_xcb_xid xid;
|
_xcb_xid xid;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void _xcb_conn_shutdown(XCBConnection *c);
|
||||||
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count);
|
int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue