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
38451247
Commit
38451247
authored
Jan 23, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop the watcher macro, call start/stop through function pointers and fix a compiler warning.
parent
5b72d7cf
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
143 additions
and
64 deletions
+143
-64
src/gevent/libev/callbacks.c
src/gevent/libev/callbacks.c
+1
-1
src/gevent/libev/corecext.ppyx
src/gevent/libev/corecext.ppyx
+135
-63
src/gevent/libev/libev.pxd
src/gevent/libev/libev.pxd
+7
-0
No files found.
src/gevent/libev/callbacks.c
View file @
38451247
...
...
@@ -188,7 +188,7 @@ static void gevent_call(struct PyGeventLoopObject* loop, struct PyGeventCallback
#undef DEFINE_CALLBACK
#define DEFINE_CALLBACK(WATCHER_LC, WATCHER_TYPE) \
static void gevent_callback_##WATCHER_LC(struct ev_loop *_loop, void *c_watcher, int revents) { \
struct PyGeventWatcherObject* watcher = GET_OBJECT(PyGevent##WATCHER_TYPE##Object, c_watcher, _watcher); \
struct PyGeventWatcherObject* watcher =
(struct PyGeventWatcherObject*)
GET_OBJECT(PyGevent##WATCHER_TYPE##Object, c_watcher, _watcher); \
gevent_callback(watcher->loop, watcher->_callback, watcher->args, (PyObject*)watcher, c_watcher, revents); \
}
...
...
src/gevent/libev/corecext.ppyx
View file @
38451247
This diff is collapsed.
Click to expand it.
src/gevent/libev/libev.pxd
View file @
38451247
...
...
@@ -131,6 +131,13 @@ cdef extern from "libev.h" nogil:
stat
prev
double
interval
union
ev_any_watcher
:
ev_watcher
w
ev_io
io
ev_timer
timer
ev_signal
signal
ev_idle
idle
int
ev_version_major
()
int
ev_version_minor
()
...
...
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