Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
6c373043
Commit
6c373043
authored
May 05, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libev: keep ev_run() running while there are still pending events
parent
9135575a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
libev/ev.c
libev/ev.c
+14
-1
No files found.
libev/ev.c
View file @
6c373043
...
...
@@ -2896,6 +2896,19 @@ time_update (EV_P_ ev_tstamp max_block)
}
}
inline_speed
int
has_pending
(
EV_P
)
{
int
pri
;
for
(
pri
=
NUMPRI
;
pri
--
;
)
if
(
pendingcnt
[
pri
])
return
1
;
return
0
;
}
void
ev_run
(
EV_P_
int
flags
)
{
...
...
@@ -3052,7 +3065,7 @@ ev_run (EV_P_ int flags)
EV_INVOKE_PENDING
;
}
while
(
expect_true
(
activecnt
(
activecnt
||
has_pending
(
EV_A
))
&&
!
loop_done
&&
!
(
flags
&
(
EVRUN_ONCE
|
EVRUN_NOWAIT
))
));
...
...
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