Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename register_event to hint that it's private and get read of wait_…

…for_read & wait_for_write as they are duplicate and not used anywhere
  • Loading branch information...
commit 11372151c51751222dbb911c43fcc985b1592e27 1 parent e07c141
@halayli halayli authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 coro/linux_poller.pyx
View
10 coro/linux_poller.pyx
@@ -210,7 +210,7 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
me = the_scheduler._current
target = me
self.event_map[ek] = target
- self.register_event(ek, flags)
+ self._register_event(ek, flags)
return target
@@ -220,7 +220,7 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
cdef notify_of_close (self, int fd):
return
- cdef register_event(self, event_key ek, unsigned int flags):
+ cdef _register_event(self, event_key ek, unsigned int flags):
cdef int r
cdef epoll_event org_e
org_e.data.fd = ek.fd
@@ -259,12 +259,6 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
cdef _wait_for_write (self, int fd):
return self._wait_for_with_eof(fd, EPOLLOUT)
- def wait_for_read (self, int fd):
- return self._wait_for_with_eof(fd, EPOLLIN)
-
- def wait_for_write (self, int fd):
- return self._wait_for_with_eof(fd, EPOLLOUT)
-
cdef py_event _wait_for (self, int fd, int events):
cdef event_key ek
ek = event_key (events, fd)
Please sign in to comment.
Something went wrong with that request. Please try again.