Public Member Functions | |
def | __init__ |
def | close |
def | consume |
def | fileno |
def | wake |
Public Attributes | |
reader_fd | |
writer |
Create an OS independent asynchronous pipe. For use on platforms that don't have os.pipe() (or where pipes cannot be passed to select()), but do have sockets. This includes Windows and Jython.
def tornado.platform.common.Waker.__init__ | ( | self | ) |
def tornado.platform.common.Waker.close | ( | self | ) |
Closes the waker's file descriptor(s).
Reimplemented from tornado.platform.interface.Waker.
def tornado.platform.common.Waker.consume | ( | self | ) |
Called after the listen has woken up to do any necessary cleanup.
Reimplemented from tornado.platform.interface.Waker.
def tornado.platform.common.Waker.fileno | ( | self | ) |
Returns a file descriptor for this waker. Must be suitable for use with ``select()`` or equivalent on the local platform.
Reimplemented from tornado.platform.interface.Waker.
def tornado.platform.common.Waker.wake | ( | self | ) |
Triggers activity on the waker's file descriptor.
Reimplemented from tornado.platform.interface.Waker.