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
d22a96f1
Commit
d22a96f1
authored
Apr 03, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: rename _get_fd to _open_osfhandle because that is what it does
parent
d7657d47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gevent/core_.pyx
gevent/core_.pyx
+3
-3
No files found.
gevent/core_.pyx
View file @
d22a96f1
...
@@ -437,10 +437,10 @@ cdef class watcher:
...
@@ -437,10 +437,10 @@ cdef class watcher:
return ''
return ''
cdef int _
get_fd
(int handle) except -1:
cdef int _
open_osfhandle
(int handle) except -1:
cdef int fd = handle
cdef int fd = handle
IFDEF_WINDOWS()
IFDEF_WINDOWS()
fd = _open_osfhandle(fd, 0)
fd =
libev.
_open_osfhandle(fd, 0)
if fd < 0:
if fd < 0:
raise IOError("handle=%s does not have a valid file descriptor" % handle)
raise IOError("handle=%s does not have a valid file descriptor" % handle)
if fd >= FD_SETSIZE:
if fd >= FD_SETSIZE:
...
@@ -458,7 +458,7 @@ cdef class io(watcher):
...
@@ -458,7 +458,7 @@ cdef class io(watcher):
def __init__(self, loop loop, int fd, int events):
def __init__(self, loop loop, int fd, int events):
IFDEF_WINDOWS()
IFDEF_WINDOWS()
fd = _
get_fd
(fd)
fd = _
open_osfhandle
(fd)
ENDIF()
ENDIF()
libev.ev_io_init(&self._watcher, <void *>gevent_io_callback, fd, events)
libev.ev_io_init(&self._watcher, <void *>gevent_io_callback, fd, events)
self.loop = loop
self.loop = loop
...
...
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