%PDF- %PDF-
| Direktori : /proc/thread-self/root/proc/self/root/lib64/python2.7/site-packages/tornado/platform/ |
| Current File : //proc/thread-self/root/proc/self/root/lib64/python2.7/site-packages/tornado/platform/interface.pyc |
�
��L]c @� sK d Z d d l m Z m Z m Z m Z d � Z d e f d � � YZ d S( s� Interfaces for platform-specific functionality.
This module exists primarily for documentation purposes and as base classes
for other tornado.platform modules. Most code should import the appropriate
implementation from `tornado.platform.auto`.
i ( t absolute_importt divisiont print_functiont with_statementc C� s
t � � d S( sA Sets the close-on-exec bit (``FD_CLOEXEC``)for a file descriptor.N( t NotImplementedError( t fd( ( s@ /usr/lib64/python2.7/site-packages/tornado/platform/interface.pyt set_close_exec s t Wakerc B� s; e Z d Z d � Z d � Z d � Z d � Z d � Z RS( s� A socket-like object that can wake another thread from ``select()``.
The `~tornado.ioloop.IOLoop` will add the Waker's `fileno()` to
its ``select`` (or ``epoll`` or ``kqueue``) calls. When another
thread wants to wake up the loop, it calls `wake`. Once it has woken
up, it will call `consume` to do any necessary per-wake cleanup. When
the ``IOLoop`` is closed, it closes its waker too.
c C� s
t � � d S( s� Returns the read file descriptor for this waker.
Must be suitable for use with ``select()`` or equivalent on the
local platform.
N( R ( t self( ( s@ /usr/lib64/python2.7/site-packages/tornado/platform/interface.pyt fileno( s c C� s
t � � d S( s1 Returns the write file descriptor for this waker.N( R ( R ( ( s@ /usr/lib64/python2.7/site-packages/tornado/platform/interface.pyt write_fileno0 s c C� s
t � � d S( s1 Triggers activity on the waker's file descriptor.N( R ( R ( ( s@ /usr/lib64/python2.7/site-packages/tornado/platform/interface.pyt wake4 s c C� s
t � � d S( sA Called after the listen has woken up to do any necessary cleanup.N( R ( R ( ( s@ /usr/lib64/python2.7/site-packages/tornado/platform/interface.pyt consume8 s c C� s
t � � d S( s&