aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-02-18 10:24:21 +0100
committerMihai Moldovan <ionic@ionic.de>2017-02-18 10:24:21 +0100
commit73ec915bcb1c6bde73168ad1ee1cccbec3455569 (patch)
tree65241ce35eeee929f9a5d6033b493b0ec165a074 /nx-X11/programs/Xserver/hw/nxagent/Handlers.c
parent0a7df07702c6f56b708a22c666077a3b90c7542c (diff)
parent6884e6a5b0cabdce39005470f4bcd0d960cfc956 (diff)
downloadnx-libs-73ec915bcb1c6bde73168ad1ee1cccbec3455569.tar.gz
nx-libs-73ec915bcb1c6bde73168ad1ee1cccbec3455569.tar.bz2
nx-libs-73ec915bcb1c6bde73168ad1ee1cccbec3455569.zip
Merge branch 'sunweaver-pr/smart-scheduler-is-not-optional' into 3.6.x
Attributes GH PR #330: https://github.com/ArcticaProject/nx-libs/pull/330
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Handlers.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Handlers.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
index 1721be9fb..8e80a1524 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
@@ -564,16 +564,12 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
* the client is scheduled in.
*/
- #ifdef SMART_SCHEDULE
-
#ifdef DEBUG
fprintf(stderr, "nxagentBlockHandler: Stopping the smart schedule timer.\n");
#endif
nxagentStopTimer();
- #endif
-
nxagentPrintGeometry();
#ifdef BLOCKS
@@ -601,13 +597,9 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
nxagentHandleConnectionStates();
}
- #ifdef SMART_SCHEDULE
-
if (SmartScheduleDisable == 1)
{
- #endif
-
#ifdef DEBUG
fprintf(stderr, "nxagentWakeupHandler: Resetting the dispatch state after wakeup.\n");
#endif
@@ -617,12 +609,8 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
nxagentDispatch.in = nxagentBytesIn;
nxagentDispatch.out = nxagentBytesOut;
- #ifdef SMART_SCHEDULE
-
}
- #endif
-
/*
* Can become true during the dispatch loop.
*/
@@ -897,13 +885,9 @@ void nxagentShadowWakeupHandler(void * data, int count, void * mask)
nxagentHandleConnectionStates();
}
- #ifdef SMART_SCHEDULE
-
if (SmartScheduleDisable == 1)
{
- #endif
-
#ifdef DEBUG
fprintf(stderr, "nxagentShadowWakeupHandler: Resetting the dispatch state after wakeup.\n");
#endif
@@ -913,12 +897,8 @@ void nxagentShadowWakeupHandler(void * data, int count, void * mask)
nxagentDispatch.in = nxagentBytesIn;
nxagentDispatch.out = nxagentBytesOut;
- #ifdef SMART_SCHEDULE
-
}
- #endif
-
/*
* Can become true during the dispatch loop.
*/
@@ -1095,13 +1075,9 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
#endif
}
- #ifdef SMART_SCHEDULE
-
if (SmartScheduleDisable == 1)
{
- #endif
-
/*
* Pay attention to the next client if this
* client produced enough output.
@@ -1131,12 +1107,8 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
}
#endif
- #ifdef SMART_SCHEDULE
-
}
- #endif
-
return;
}
else if (in > 0)
@@ -1178,13 +1150,9 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
* the inner dispatch loop forever.
*/
- #ifdef SMART_SCHEDULE
-
if (SmartScheduleDisable == 1)
{
- #endif
-
if (client -> index != nxagentDispatch.client)
{
#ifdef DEBUG
@@ -1230,12 +1198,8 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
#endif
}
- #ifdef SMART_SCHEDULE
-
}
- #endif
-
}
/*