%PDF- %PDF-
Direktori : /proc/227033/root/lib64/python2.7/site-packages/zmq/eventloop/minitornado/platform/ |
Current File : //proc/227033/root/lib64/python2.7/site-packages/zmq/eventloop/minitornado/platform/interface.pyo |
� +�{Wc @� 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( ( sR /usr/lib64/python2.7/site-packages/zmq/eventloop/minitornado/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( ( sR /usr/lib64/python2.7/site-packages/zmq/eventloop/minitornado/platform/interface.pyt fileno) s c C� s t � � d S( s1 Returns the write file descriptor for this waker.N( R ( R ( ( sR /usr/lib64/python2.7/site-packages/zmq/eventloop/minitornado/platform/interface.pyt write_fileno1 s c C� s t � � d S( s1 Triggers activity on the waker's file descriptor.N( R ( R ( ( sR /usr/lib64/python2.7/site-packages/zmq/eventloop/minitornado/platform/interface.pyt wake5 s c C� s t � � d S( sA Called after the listen has woken up to do any necessary cleanup.N( R ( R ( ( sR /usr/lib64/python2.7/site-packages/zmq/eventloop/minitornado/platform/interface.pyt consume9 s c C� s t � � d S( s&