| 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/test/ |
Upload File : |
ó
ê=Nc @ s d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m
Z
m Z m Z m
Z
d d l m Z d d l m Z d e f d „ ƒ YZ e j e ƒ d e j f d
„ ƒ YZ d e j f d „ ƒ YZ d
e j f d „ ƒ YZ d S( s(
Tests for L{twisted.python.threadpool}
iÿÿÿÿN( t unittestt util( t
threadpoolt
threadablet failuret context( t reactor( t Deferredt Synchronizationc B s) e Z d Z d „ Z d „ Z d g Z RS( i c C s. | | _ | | _ t j ƒ | _ g | _ d S( N( t Nt waitingt threadingt Lockt lockt runs( t selfR R
( ( s@ /usr/lib/python2.7/dist-packages/twisted/test/test_threadpool.pyt __init__ s c C sª | j j t ƒ rE t | j ƒ d s5 t j d ƒ n | j j ƒ n | j d 7_ | j j ƒ | j j d ƒ t | j ƒ | j k r™ | j j ƒ n | j j ƒ d S( Ni g-Cëâ6*?i (
R
t acquiret Falset lenR t timet sleept releaset failurest appendt NoneR R
( R ( ( s@ /usr/lib/python2.7/dist-packages/twisted/test/test_threadpool.pyt run s
R ( t __name__t
__module__R R R t synchronized( ( ( s@ /usr/lib/python2.7/dist-packages/twisted/test/test_threadpool.pyR s t ThreadPoolTestCasec B sÎ e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
e j d d
d e
ƒ g e
_ d „ Z d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s
Test threadpools.
c C sH xA t d ƒ D]&