Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
bcc519fa
Unverified
Commit
bcc519fa
authored
May 05, 2021
by
Zerong Yao
Committed by
GitHub
May 05, 2021
Browse files
remove duplicate fd lookup in aeProcessEvents (#3886)
Minor code cleanup.
parent
a62801eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae.c
View file @
bcc519fa
...
@@ -400,9 +400,9 @@ int aeProcessEvents(aeEventLoop *eventLoop, int flags)
...
@@ -400,9 +400,9 @@ int aeProcessEvents(aeEventLoop *eventLoop, int flags)
eventLoop
->
aftersleep
(
eventLoop
);
eventLoop
->
aftersleep
(
eventLoop
);
for
(
j
=
0
;
j
<
numevents
;
j
++
)
{
for
(
j
=
0
;
j
<
numevents
;
j
++
)
{
aeFileEvent
*
fe
=
&
eventLoop
->
events
[
eventLoop
->
fired
[
j
].
fd
];
int
mask
=
eventLoop
->
fired
[
j
].
mask
;
int
fd
=
eventLoop
->
fired
[
j
].
fd
;
int
fd
=
eventLoop
->
fired
[
j
].
fd
;
aeFileEvent
*
fe
=
&
eventLoop
->
events
[
fd
];
int
mask
=
eventLoop
->
fired
[
j
].
mask
;
int
fired
=
0
;
/* Number of events fired for current fd. */
int
fired
=
0
;
/* Number of events fired for current fd. */
/* Normally we execute the readable event first, and the writable
/* Normally we execute the readable event first, and the writable
...
...
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