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
ef280b1b
Commit
ef280b1b
authored
Jan 06, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
callbacks.c: update comments
parent
87b0a005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gevent/callbacks.c
gevent/callbacks.c
+4
-3
No files found.
gevent/callbacks.c
View file @
ef280b1b
...
...
@@ -111,14 +111,15 @@ static void gevent_callback(struct PyGeventLoopObject* loop, PyObject* callback,
gevent_handle_error
(
loop
,
watcher
);
if
(
revents
&
(
EV_READ
|
EV_WRITE
))
{
/* this was an 'io' watcher: not stopping it will likely to cause the failing callback to be called repeatedly */
/* QQQ what about idle watcher? It will also cause the repeated failure. */
gevent_stop
(
watcher
,
loop
);
goto
end
;
}
}
if
(
!
ev_is_active
(
c_watcher
))
{
/* Watcher w
ill never be run again (because it was stopped by libev).
*
Let's call stop() to clean up 'callback' and 'args' properties
.
*
In this case, py_events might had EV_ERROR bit set
. */
/* Watcher w
as stopped, maybe by libev. Let's call stop() to clean up
*
'callback' and 'args' properties, do Py_DECREF() and ev_ref() if necessary
.
*
BTW, we don't need to check for EV_ERROR, because libev stops the watcher in that case
. */
gevent_stop
(
watcher
,
loop
);
}
end:
...
...
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