| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/internet/test/ |
Upload File : |
ó
6›öMc @ sÖ d Z d d l m Z y d d l Z Wn e k
r? d Z n Xd d l m Z d d l m Z d d l
m Z d d l m
Z
d d l m Z d e f d
„ ƒ YZ d e f d „ ƒ YZ e ƒ j e j ƒ ƒ d S(
s6
Tests for implementations of L{IReactorWin32Events}.
iÿÿÿÿ( t get_identN( t verifyObject( t isInIOThread( t IReactorWin32Events( t Deferred( t ReactorBuildert Listenerc B sX e Z d Z e Z d Z Z Z d „ Z d „ Z
d „ Z d „ Z d „ Z
d „ Z RS( sÔ
L{Listener} is an object that can be added to a L{IReactorWin32Events}
reactor to receive callback notification when a Windows event is set. It
records what thread its callback is invoked in and fires a Deferred.
@ivar success: A flag which is set to C{True} when the event callback is
called.
@ivar logThreadID: The id of the thread in which the C{logPrefix} method is
called.
@ivar eventThreadID: The id of the thread in which the event callback is
called.
@ivar connLostThreadID: The id of the thread in which the C{connectionLost}
method is called.
@ivar _finished: The L{Deferred} which will be fired when the event callback
is called.
c C s
| | _ d S( N( t _finished( t selft finished( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyt __init__/ s c C s t ƒ | _ d S( NR ( R t logThreadID( R ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyt logPrefix3 s c C s) t | _ t ƒ | _ | j j d ƒ d S( N( t Truet successR t
eventThreadIDR t callbackt None( R ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyt occurred8 s c C s t d ƒ ‚ d S( Ns Some problem( t RuntimeError( R ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyt brokenOccurred>