Add XCBGetQueuedRequestRead for Xlib that does no syscalls, just returns whatever XCB already knows about.
This commit is contained in:
parent
26ac6292ba
commit
6e29e5f2ee
|
@ -26,6 +26,11 @@
|
||||||
#include "xcbxlib.h"
|
#include "xcbxlib.h"
|
||||||
#include "xcbint.h"
|
#include "xcbint.h"
|
||||||
|
|
||||||
|
unsigned int XCBGetQueuedRequestRead(XCBConnection *c)
|
||||||
|
{
|
||||||
|
return c->in.request_read;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned int XCBGetRequestSent(XCBConnection *c)
|
unsigned int XCBGetRequestSent(XCBConnection *c)
|
||||||
{
|
{
|
||||||
return c->out.request;
|
return c->out.request;
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include "xcb.h"
|
#include "xcb.h"
|
||||||
|
|
||||||
|
/* This function must be called with the IOLock held. */
|
||||||
|
unsigned int XCBGetQueuedRequestRead(XCBConnection *c);
|
||||||
|
|
||||||
/* This function must be called with the IOLock held. */
|
/* This function must be called with the IOLock held. */
|
||||||
unsigned int XCBGetRequestSent(XCBConnection *c);
|
unsigned int XCBGetRequestSent(XCBConnection *c);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue