Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
7921cf79
Commit
7921cf79
authored
Feb 18, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handlers.c: slight cosmetics
no functional change
parent
c73ddd31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
Handlers.c
nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+4
-16
No files found.
nx-X11/programs/Xserver/hw/nxagent/Handlers.c
View file @
7921cf79
...
...
@@ -573,7 +573,6 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
if
(
!
SmartScheduleSignalEnable
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentWakeupHandler: Resetting the dispatch state after wakeup.
\n
"
);
#endif
...
...
@@ -582,7 +581,6 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
nxagentDispatch
.
in
=
nxagentBytesIn
;
nxagentDispatch
.
out
=
nxagentBytesOut
;
}
/*
...
...
@@ -638,12 +636,10 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
nxagentReady
=
count
;
#ifdef TEST
if
(
nxagentReady
==
0
)
{
fprintf
(
stderr
,
"nxagentWakeupHandler: No X clients found to be processed.
\n
"
);
}
#endif
/*
...
...
@@ -714,17 +710,17 @@ void nxagentShadowBlockHandler(void * data, struct timeval **timeout, void * mas
if
(
nxagentSessionState
==
SESSION_DOWN
&&
nxagentOption
(
SleepTime
)
>
0
)
{
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"nxagentShadowBlockHandler: sleeping for %d milliseconds for slowdown.
\n
"
,
nxagentOption
(
SleepTime
));
#endif
#endif
usleep
(
nxagentOption
(
SleepTime
)
*
1000
);
}
#ifdef TEST
#ifdef TEST
else
if
(
0
==
nxagentOption
(
SleepTime
))
{
fprintf
(
stderr
,
"nxagentShadowBlockHandler: not sleeping for slowdown.
\n
"
);
}
#endif
#endif
if
(
nxagentReadEvents
(
nxagentDisplay
)
>
0
||
nxagentReadEvents
(
nxagentShadowDisplay
)
>
0
)
...
...
@@ -1003,7 +999,6 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
if
(
!
SmartScheduleSignalEnable
)
{
/*
* Pay attention to the next client if this client produced
* enough output.
...
...
@@ -1032,9 +1027,7 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
nxagentBytesOut
-
nxagentDispatch
.
out
,
nxagentDispatch
.
client
);
}
#endif
}
return
;
}
else
if
(
in
>
0
)
...
...
@@ -1077,7 +1070,6 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
if
(
!
SmartScheduleSignalEnable
)
{
if
(
client
->
index
!=
nxagentDispatch
.
client
)
{
#ifdef DEBUG
...
...
@@ -1122,9 +1114,7 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
}
#endif
}
}
}
/*
...
...
@@ -1168,12 +1158,10 @@ void nxagentDispatchHandler(ClientPtr client, int in, int out)
*/
#ifdef TEST
if
(
nxagentTokens
.
pending
==
TOKENS_PENDING_LIMIT
)
{
fprintf
(
stderr
,
"nxagentDispatchHandler: WARNING! Waiting for the synchronization reply.
\n
"
);
}
#endif
while
(
nxagentTokens
.
pending
==
TOKENS_PENDING_LIMIT
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment