diff options
author | Pauli Nieminen <ext-pauli.nieminen@nokia.com> | 2017-02-16 10:35:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-03-21 10:58:07 +0100 |
commit | 349b6dec54eaa86b49f3627939c4e7039e3b25f0 (patch) | |
tree | 5a3649f5c2c234653edeb87eaee4513d11f9af8c /nx-X11/programs/Xserver/os/osdep.h | |
parent | 239fe3d0802b12ce8947741693244ff8154fa559 (diff) | |
download | nx-libs-349b6dec54eaa86b49f3627939c4e7039e3b25f0.tar.gz nx-libs-349b6dec54eaa86b49f3627939c4e7039e3b25f0.tar.bz2 nx-libs-349b6dec54eaa86b49f3627939c4e7039e3b25f0.zip |
os: always check if client is local when connection is accepted
Backported from X.org:
commit 2d67ada3c4079a11c52024a9c3d4138becca5171
Author: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Date: Thu Dec 30 19:19:43 2010 +0200
os: always check if client is local when connection is accepted
LocalClient is used for all DRI2 requests that makes it frequently
called function. Querying if connection is local or not takes 10-15us
(on ARM) depending on malloc speed.
Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Backported-to-NX-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'nx-X11/programs/Xserver/os/osdep.h')
-rw-r--r-- | nx-X11/programs/Xserver/os/osdep.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/os/osdep.h b/nx-X11/programs/Xserver/os/osdep.h index dc66649dc..709f33943 100644 --- a/nx-X11/programs/Xserver/os/osdep.h +++ b/nx-X11/programs/Xserver/os/osdep.h @@ -176,6 +176,7 @@ typedef struct _osComm { XID auth_id; /* authorization id */ CARD32 conn_time; /* timestamp if not established, else 0 */ struct _XtransConnInfo *trans_conn; /* transport connection object */ + Bool local_client; } OsCommRec, *OsCommPtr; extern int FlushClient( @@ -239,6 +240,9 @@ typedef long int fd_mask; #define ffs mffs extern int mffs(fd_mask); +/* in access.c */ +extern Bool ComputeLocalClient(ClientPtr client); + /* in auth.c */ extern void GenerateRandomData (int len, char *buf); |