Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
ó k]Œjc@s dZddlZyddlZWnek rBeje=‚nXddlZddlm Z ddl m Z m ZddlmZdddd d d d d dddddddddgZejZejZejZejZ[ejddeddddƒeZdefd„ƒYZ e!a"e!a#d„Z$d „Z%eZ&d!„Z'd"e fd#„ƒYZ(d$„Z)d%e fd&„ƒYZ*d'„Z+d(e fd)„ƒYZ,d*„Z-d+e,fd,„ƒYZ.d-„Z/d.e fd/„ƒYZ0d0a1d1d2„Z2eƒa3iZ4iZ5de fd3„ƒYZ6d4„Z7d5e6fd6„ƒYZ8d7e6fd8„ƒYZ9d9„Z:d:e6fd;„ƒYZ;d<„Z<e<Z=d=„Z>e>Z?d>„Z@d?„ZAdd@lmBZBe9ƒjCZDyddAlmEZFWn!ek róddBlGmFZFnXdC„ZHdD„ZIedEkreIƒndS(Fs;Thread module emulating a subset of Java's threading model.iÿÿÿÿN(tdeque(ttimetsleep(t format_exct activeCountt active_countt Conditiont currentThreadtcurrent_threadt enumeratetEventtLocktRLockt SemaphoretBoundedSemaphoretThreadtTimert setprofiletsettracetlocalt stack_sizetignoretcategorytmodulet threadingtmessages sys.exc_cleart_VerbosecBseZdd„Zd„ZRS(cCs"|dkrt}n||_dS(N(tNonet_VERBOSEt_Verbose__verbose(tselftverbose((s!/usr/lib64/python2.7/threading.pyt__init__:s  cGsr|jrn||}tƒ}yt|j}Wntk rJd|}nXd||f}tjj|ƒndS(Nss%s: %s (Rt _get_identt_activetnametKeyErrort_syststderrtwrite(RtformattargstidentR#((s!/usr/lib64/python2.7/threading.pyt_note?s    N(t__name__t __module__RR R+(((s!/usr/lib64/python2.7/threading.pyR8s cCs |adS(s¸Set a profile function for all threads started from the threading module. The func will be passed to sys.setprofile() for each thread, before its run() method is called. N(t _profile_hook(tfunc((s!/usr/lib64/python2.7/threading.pyRYscCs |adS(s´Set a trace function for all threads started from the threading module. The func will be passed to sys.settrace() for each thread, before its run() method is called. N(t _trace_hook(R/((s!/usr/lib64/python2.7/threading.pyRcscOs t||ŽS(s2Factory function that returns a new reentrant lock. A reentrant lock must be released by the thread that acquired it. Once a thread has acquired a reentrant lock, the same thread may acquire it again without blocking; the thread must release it once for each time it has acquired it. (t_RLock(R)tkwargs((s!/usr/lib64/python2.7/threading.pyR qs R1cBsbeZdZd d„Zd„Zdd„ZeZd„Zd„Z d„Z d„Z d „Z RS( sA reentrant lock must be released by the thread that acquired it. Once a thread has acquired a reentrant lock, the same thread may acquire it again without blocking; the thread must release it once for each time it has acquired it. cCs2tj||ƒtƒ|_d|_d|_dS(Ni(RR t_allocate_lockt _RLock__blockRt _RLock__ownert _RLock__count(RR((s!/usr/lib64/python2.7/threading.pyR ƒs  cCsH|j}yt|j}Wntk r-nXd|jj||jfS(Ns<%s owner=%r count=%d>(R5R"R#R$t __class__R,R6(Rtowner((s!/usr/lib64/python2.7/threading.pyt__repr__‰s  icCs–tƒ}|j|kr?|jd|_|jd||ƒdS|jj|ƒ}|r||_d|_|jd||ƒn|jd||ƒ|S(sîAcquire a lock, blocking or non-blocking. When invoked without arguments: if this thread already owns the lock, increment the recursion level by one, and return immediately. Otherwise, if another thread owns the lock, block until the lock is unlocked. Once the lock is unlocked (not owned by any thread), then grab ownership, set the recursion level to one, and return. If more than one thread is blocked waiting until the lock is unlocked, only one at a time will be able to grab ownership of the lock. There is no return value in this case. When invoked with the blocking argument set to true, do the same thing as when called without arguments, and return true. When invoked with the blocking argument set to false, do not block. If a call without an argument would block, return false immediately; otherwise, do the same thing as when called without arguments, and return true. is!%s.acquire(%s): recursive successs%s.acquire(%s): initial successs%s.acquire(%s): failure(R!R5R6R+R4tacquire(Rtblockingtmetrc((s!/usr/lib64/python2.7/threading.pyR:’s   cCsx|jtƒkr!tdƒ‚n|jd|_}|sdd|_|jjƒ|jd|ƒn|jd|ƒdS(smRelease a lock, decrementing the recursion level. If after the decrement it is zero, reset the lock to unlocked (not owned by any thread), and if any other threads are blocked waiting for the lock to become unlocked, allow exactly one of them to proceed. If after the decrement the recursion level is still nonzero, the lock remains locked and owned by the calling thread. Only call this method when the calling thread owns the lock. A RuntimeError is raised if this method is called when the lock is unlocked. There is no return value. scannot release un-acquired lockis%s.release(): final releases%s.release(): non-final releaseN(R5R!t RuntimeErrorR6RR4treleaseR+(Rtcount((s!/usr/lib64/python2.7/threading.pyR?ºs  cCs|jƒdS(N(R?(Rtttvttb((s!/usr/lib64/python2.7/threading.pyt__exit__ÖscCs?|\}}|jjƒ||_||_|jd|ƒdS(Ns%s._acquire_restore()(R4R:R6R5R+(Rt count_ownerR@R8((s!/usr/lib64/python2.7/threading.pyt_acquire_restoreÛs     cCsK|jd|ƒ|j}d|_|j}d|_|jjƒ||fS(Ns%s._release_save()i(R+R6R5RR4R?(RR@R8((s!/usr/lib64/python2.7/threading.pyt _release_saveãs     cCs|jtƒkS(N(R5R!(R((s!/usr/lib64/python2.7/threading.pyt _is_ownedísN( R,R-t__doc__RR R9R:t __enter__R?RDRFRGRH(((s!/usr/lib64/python2.7/threading.pyR1|s  &    cOs t||ŽS(s}Factory function that returns a new condition variable object. A condition variable allows one or more threads to wait until they are notified by another thread. If the lock argument is given and not None, it must be a Lock or RLock object, and it is used as the underlying lock. Otherwise, a new RLock object is created and used as the underlying lock. (t _Condition(R)R2((s!/usr/lib64/python2.7/threading.pyRñs RKcBs}eZdZd d d„Zd„Zd„Zd„Zd„Zd„Z d„Z d e d„Z d d „Z d „ZeZRS( slCondition variables allow one or more threads to wait until they are notified by another thread. cCsÂtj||ƒ|dkr(tƒ}n||_|j|_|j|_y|j|_Wntk rlnXy|j |_ Wntk r�nXy|j |_ Wntk r´nXg|_ dS(N( RR RR t_Condition__lockR:R?RGtAttributeErrorRFRHt_Condition__waiters(RtlockR((s!/usr/lib64/python2.7/threading.pyR s&        cCs |jjƒS(N(RLRJ(R((s!/usr/lib64/python2.7/threading.pyRJscGs|jj|ŒS(N(RLRD(RR)((s!/usr/lib64/python2.7/threading.pyRDscCsd|jt|jƒfS(Ns(RLtlenRN(R((s!/usr/lib64/python2.7/threading.pyR9"scCs|jjƒdS(N(RLR?(R((s!/usr/lib64/python2.7/threading.pyRG%scCs|jjƒdS(N(RLR:(Rtx((s!/usr/lib64/python2.7/threading.pyRF(scCs+|jjdƒr#|jjƒtStSdS(Ni(RLR:R?tFalsetTrue(R((s!/usr/lib64/python2.7/threading.pyRH+s c Cs~|jƒstdƒ‚ntƒ}|jƒ|jj|ƒ|jƒ}z|d krv|jƒ|jd|ƒnòt ƒ|}d}x…t r|jdƒ}|r«Pnt |t ƒ|ƒ}|dkrÑPn|rðt |d|dƒ}n|}t ƒ|}t |ƒqŒW|sU|jd||ƒy|jj |ƒWqhtk rQqhXn|jd||ƒWd |j|ƒXd S( sjWait until notified or until a timeout occurs. If the calling thread has not acquired the lock when this method is called, a RuntimeError is raised. This method releases the underlying lock, and then blocks until it is awakened by a notify() or notifyAll() call for the same condition variable in another thread, or until the optional timeout occurs. Once awakened or timed out, it re-acquires the lock and returns. When the timeout argument is present and not None, it should be a floating point number specifying a timeout for the operation in seconds (or fractions thereof). When the underlying lock is an RLock, it is not released using its release() method, since this may not actually unlock the lock when it was acquired multiple times recursively. Instead, an internal interface of the RLock class is used, which really unlocks it even when it has been recursively acquired several times. Another internal interface is then used to restore the recursion level when the lock is reacquired. scannot wait on un-acquired locks%s.wait(): got itgü©ñÒMb@?iigš™™™™™©?s%s.wait(%s): timed outs%s.wait(%s): got itN(RHR>R3R:RNtappendRGRR+t_timeRStmint_sleeptremovet ValueErrorRF( Rttimeoutt balancingtwaitert saved_statetendtimetdelaytgotitt remaining((s!/usr/lib64/python2.7/threading.pytwait4s@           icCs´|jƒstdƒ‚n|j}|| }|sH|jd|ƒdS|jd|||dkridpldƒx=|D]5}|jƒy|j|ƒWqwtk r«qwXqwWdS(sKWake up one or more threads waiting on this condition, if any. If the calling thread has not acquired the lock when this method is called, a RuntimeError is raised. This method wakes up at most n of the threads waiting for the condition variable; it is a no-op if no threads are waiting. s!cannot notify on un-acquired locks%s.notify(): no waitersNs"%s.notify(): notifying %d waiter%sitst(RHR>RNR+R?RXRY(RtnRNtwaitersR\((s!/usr/lib64/python2.7/threading.pytnotifyxs      cCs|jt|jƒƒdS(s¯Wake up all threads waiting on this condition. If the calling thread has not acquired the lock when this method is called, a RuntimeError is raised. N(RgRPRN(R((s!/usr/lib64/python2.7/threading.pyt notifyAll“sN(R,R-RIRR RJRDR9RGRFRHRSRbRgRht notify_all(((s!/usr/lib64/python2.7/threading.pyRKþs      D  cOs t||ŽS(sOA factory function that returns a new semaphore. Semaphores manage a counter representing the number of release() calls minus the number of acquire() calls, plus an initial value. The acquire() method blocks if necessary until it can return without making the counter negative. If not given, value defaults to 1. (t _Semaphore(R)R2((s!/usr/lib64/python2.7/threading.pyR Ÿs RjcBsAeZdZddd„Zdd„ZeZd„Zd„ZRS(s"Semaphores manage a counter representing the number of release() calls minus the number of acquire() calls, plus an initial value. The acquire() method blocks if necessary until it can return without making the counter negative. If not given, value defaults to 1. icCsJ|dkrtdƒ‚ntj||ƒttƒƒ|_||_dS(Nis$semaphore initial value must be >= 0(RYRR RR t_Semaphore__condt_Semaphore__value(RtvalueR((s!/usr/lib64/python2.7/threading.pyR ´s  c CsŒt}|j�wxo|jdkrU|s,Pn|jd|||jƒ|jjƒqW|jd|_|jd||jƒt}WdQX|S(sAcquire a semaphore, decrementing the internal counter by one. When invoked without arguments: if the internal counter is larger than zero on entry, decrement it by one and return immediately. If it is zero on entry, block, waiting until some other thread has called release() to make it larger than zero. This is done with proper interlocking so that if multiple acquire() calls are blocked, release() will wake exactly one of them up. The implementation may pick one at random, so the order in which blocked threads are awakened should not be relied on. There is no return value in this case. When invoked with blocking set to true, do the same thing as when called without arguments, and return true. When invoked with blocking set to false, do not block. If a call without an argument would block, return false immediately; otherwise, do the same thing as when called without arguments, and return true. is)%s.acquire(%s): blocked waiting, value=%sis%s.acquire: success, value=%sN(RRRkRlR+RbRS(RR;R=((s!/usr/lib64/python2.7/threading.pyR:»s     cCsG|j�8|jd|_|jd||jƒ|jjƒWdQXdS(s×Release a semaphore, incrementing the internal counter by one. When the counter is zero on entry and another thread is waiting for it to become larger than zero again, wake up that thread. is%s.release: success, value=%sN(RkRlR+Rg(R((s!/usr/lib64/python2.7/threading.pyR?âs    cCs|jƒdS(N(R?(RRARBRC((s!/usr/lib64/python2.7/threading.pyRDðsN( R,R-RIRR R:RJR?RD(((s!/usr/lib64/python2.7/threading.pyRjªs  % cOs t||ŽS(sÂA factory function that returns a new bounded semaphore. A bounded semaphore checks to make sure its current value doesn't exceed its initial value. If it does, ValueError is raised. In most situations semaphores are used to guard resources with limited capacity. If the semaphore is released too many times it's a sign of a bug. If not given, value defaults to 1. Like regular semaphores, bounded semaphores manage a counter representing the number of release() calls minus the number of acquire() calls, plus an initial value. The acquire() method blocks if necessary until it can return without making the counter negative. If not given, value defaults to 1. (t_BoundedSemaphore(R)R2((s!/usr/lib64/python2.7/threading.pyRôsRncBs&eZdZddd„Zd„ZRS(sáA bounded semaphore checks to make sure its current value doesn't exceed its initial value. If it does, ValueError is raised. In most situations semaphores are used to guard resources with limited capacity. icCs tj|||ƒ||_dS(N(RjR t_initial_value(RRmR((s!/usr/lib64/python2.7/threading.pyR scCs.|j|jkr!tdƒ‚ntj|ƒS(s6Release a semaphore, incrementing the internal counter by one. When the counter is zero on entry and another thread is waiting for it to become larger than zero again, wake up that thread. If the number of releases exceeds the number of acquires, raise a ValueError. s!Semaphore released too many times(RlRoRYRjR?(R((s!/usr/lib64/python2.7/threading.pyR?s N(R,R-RIRR R?(((s!/usr/lib64/python2.7/threading.pyRnscOs t||ŽS(sßA factory function that returns a new event. Events manage a flag that can be set to true with the set() method and reset to false with the clear() method. The wait() method blocks until the flag is true. (t_Event(R)R2((s!/usr/lib64/python2.7/threading.pyR sRpcBsSeZdZdd„Zd„Zd„ZeZd„Zd„Z de d„Z RS(sêA factory function that returns a new event object. An event manages a flag that can be set to true with the set() method and reset to false with the clear() method. The wait() method blocks until the flag is true. cCs/tj||ƒttƒƒ|_t|_dS(N(RR RR t _Event__condRRt _Event__flag(RR((s!/usr/lib64/python2.7/threading.pyR 2scCs|jjƒdS(N(RqR (R((s!/usr/lib64/python2.7/threading.pyt_reset_internal_locks7scCs|jS(s5Return true if and only if the internal flag is true.(Rr(R((s!/usr/lib64/python2.7/threading.pytisSet;scCs<|jjƒzt|_|jjƒWd|jjƒXdS(s½Set the internal flag to true. All threads waiting for the flag to become true are awakened. Threads that call wait() once the flag is true will not block at all. N(RqR:RSRrRiR?(R((s!/usr/lib64/python2.7/threading.pytsetAs   cCs/|jjƒz t|_Wd|jjƒXdS(sªReset the internal flag to false. Subsequently, threads calling wait() will block until set() is called to set the internal flag to true again. N(RqR:RRRrR?(R((s!/usr/lib64/python2.7/threading.pytclearOs  cCsL|jjƒz*|js/|jj||ƒn|jSWd|jjƒXdS(sHBlock until the internal flag is true. If the internal flag is true on entry, return immediately. Otherwise, block until another thread calls set() to set the flag to true, or until the optional timeout occurs. When the timeout argument is present and not None, it should be a floating point number specifying a timeout for the operation in seconds (or fractions thereof). This method returns the internal flag on exit, so it will always return True except if a timeout is given and the operation times out. N(RqR:RrRbR?(RRZR[((s!/usr/lib64/python2.7/threading.pyRb\s    N( R,R-RIRR RsRttis_setRuRvRSRb(((s!/usr/lib64/python2.7/threading.pyRp)s     is Thread-%dcCstda|tS(Ni(t_counter(ttemplate((s!/usr/lib64/python2.7/threading.pyt_newnameus cBs=eZdZeZejZejZ ddddddd„Z d„Z e d„ƒZd„Zd„Zd„Zd„Zd„Zd „Zd „Zd „Zd „Zded „Ze d„ƒZejd„ƒZe d„ƒZd„ZeZe d„ƒZejd„ƒZd„Z d„Z!d„Z"d„Z#RS(sqA class that represents a thread of control. This class can be safely subclassed in a limited fashion. cCsÈ|dkstdƒ‚tj||ƒ|dkr=i}n||_t|pUtƒƒ|_||_||_ |j ƒ|_ d|_ t ƒ|_t|_ttƒƒ|_t|_tj|_dS(sCThis constructor should always be called with keyword arguments. Arguments are: *group* should be None; reserved for future extension when a ThreadGroup class is implemented. *target* is the callable object to be invoked by the run() method. Defaults to None, meaning nothing is called. *name* is the thread name. By default, a unique name is constructed of the form "Thread-N" where N is a small decimal number. *args* is the argument tuple for the target invocation. Defaults to (). *kwargs* is a dictionary of keyword arguments for the target invocation. Defaults to {}. If a subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread. s#group argument must be None for nowN(RtAssertionErrorRR t_Thread__targettstrRzt _Thread__namet _Thread__argst_Thread__kwargst _set_daemont_Thread__daemonict_Thread__identR t_Thread__startedRRt_Thread__stoppedRR t_Thread__blockRSt_Thread__initializedR%R&t_Thread__stderr(RtgroupttargetR#R)R2R((s!/usr/lib64/python2.7/threading.pyR ’s         cCs0t|dƒr|jjƒn|jjƒdS(NR†(thasattrR†R R„Rs(R((s!/usr/lib64/python2.7/threading.pyRs»scCs|jS(N(R†(R((s!/usr/lib64/python2.7/threading.pyt_blockÂscCs tƒjS(N(Rtdaemon(R((s!/usr/lib64/python2.7/threading.pyR�ÇscCs˜|jstdƒ‚d}|jjƒr3d}n|jrEd}n|jr[|d7}n|jdk r~|d|j7}nd|jj |j |fS(Ns Thread.__init__() was not calledtinitialtstartedtstoppeds daemons %ss <%s(%s, %s)>( R‡R{R„RwR…R‚RƒRR7R,R~(Rtstatus((s!/usr/lib64/python2.7/threading.pyR9Ës     cCs­|jstdƒ‚n|jjƒr6tdƒ‚n|jd|ƒt�|t|R„RwR+t_active_limbo_lockt_limbot_start_new_threadt_Thread__bootstrapt ExceptionRb(R((s!/usr/lib64/python2.7/threading.pytstartØs   cCs@z&|jr%|j|j|jŽnWd|`|`|`XdS(sXMethod representing the thread's activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively. N(R|RR€(R((s!/usr/lib64/python2.7/threading.pytrunòs  cCs8y|jƒWn#|jr-tdkr-dS‚nXdS(N(t_Thread__bootstrap_innerR‚R%R(R((s!/usr/lib64/python2.7/threading.pyt __bootstraps cCstƒ|_dS(N(R!Rƒ(R((s!/usr/lib64/python2.7/threading.pyt _set_identsc Cs zÒ|jƒ|jjƒt�|t|jR„RwRR…R+R†R:RRbRUR?(RRZR[tdeadlineR_((s!/usr/lib64/python2.7/threading.pytjoin‘s.         cCs|jstdƒ‚|jS(s¸A string used for identification purposes only. It has no semantics. Multiple threads may be given the same name. The initial name is set by the constructor. sThread.__init__() not called(R‡R{R~(R((s!/usr/lib64/python2.7/threading.pyR#ÉscCs(|jstdƒ‚t|ƒ|_dS(NsThread.__init__() not called(R‡R{R}R~(RR#((s!/usr/lib64/python2.7/threading.pyR#ÔscCs|jstdƒ‚|jS(s;Thread identifier of this thread or None if it has not been started. This is a nonzero integer. See the thread.get_ident() function. Thread identifiers may be recycled when a thread exits and another thread is created. The identifier is available even after the thread has exited. sThread.__init__() not called(R‡R{Rƒ(R((s!/usr/lib64/python2.7/threading.pyR*Ùs cCs,|jstdƒ‚|jjƒo+|j S(söReturn whether the thread is alive. This method returns True just before the run() method starts until just after the run() method terminates. The module function enumerate() returns a list of all alive threads. sThread.__init__() not called(R‡R{R„RwR…(R((s!/usr/lib64/python2.7/threading.pytisAliveåscCs|jstdƒ‚|jS(sÜA boolean value indicating whether this thread is a daemon thread (True) or not (False). This must be set before start() is called, otherwise RuntimeError is raised. Its initial value is inherited from the creating thread; the main thread is not a daemon thread and therefore all threads created in the main thread default to daemon = False. The entire Python program exits when no alive non-daemon threads are left. sThread.__init__() not called(R‡R{R‚(R((s!/usr/lib64/python2.7/threading.pyR�òs cCsC|jstdƒ‚n|jjƒr6tdƒ‚n||_dS(NsThread.__init__() not calleds)cannot set daemon status of active thread(R‡R>R„RwR‚(Rtdaemonic((s!/usr/lib64/python2.7/threading.pyR�s  cCs|jS(N(R�(R((s!/usr/lib64/python2.7/threading.pytisDaemon scCs ||_dS(N(R�(RR²((s!/usr/lib64/python2.7/threading.pyt setDaemon scCs|jS(N(R#(R((s!/usr/lib64/python2.7/threading.pytgetNamescCs ||_dS(N(R#(RR#((s!/usr/lib64/python2.7/threading.pytsetNamesN(($R,R-RIRRR‡R%texc_infoRžt exc_clearR¥RR RstpropertyRŒR�R9R—R˜R•R›R™R¦t_Thread__deleteRSR°R#tsetterR*R±tis_aliveR�R³R´RµR¶(((s!/usr/lib64/python2.7/threading.pyR‚s:   (       J #8     cOs t||ŽS(súFactory function to create a Timer object. Timers call a function after a specified number of seconds: t = Timer(30.0, f, args=[], kwargs={}) t.start() t.cancel() # stop the timer's action if it's still waiting (t_Timer(R)R2((s!/usr/lib64/python2.7/threading.pyRs R½cBs/eZdZgid„Zd„Zd„ZRS(sÏCall a function after a specified number of seconds: t = Timer(30.0, f, args=[], kwargs={}) t.start() t.cancel() # stop the timer's action if it's still waiting cCsAtj|ƒ||_||_||_||_tƒ|_dS(N(RR tintervaltfunctionR)R2R tfinished(RR¾R¿R)R2((s!/usr/lib64/python2.7/threading.pyR -s      cCs|jjƒdS(s(Stop the timer if it hasn't finished yetN(RÀRu(R((s!/usr/lib64/python2.7/threading.pytcancel5scCsL|jj|jƒ|jjƒs;|j|j|jŽn|jjƒdS(N(RÀRbR¾RwR¿R)R2Ru(R((s!/usr/lib64/python2.7/threading.pyR˜9s(R,R-RIR RÁR˜(((s!/usr/lib64/python2.7/threading.pyR½$s t _MainThreadcBs#eZd„Zd„Zd„ZRS(cCsHtj|ddƒ|jjƒ|jƒt�|ttƒ(RÝRÜRÕR×R#RW(RRÝtcounter((s!/usr/lib64/python2.7/threading.pyR˜ s  (R,R-R R˜(((s!/usr/lib64/python2.7/threading.pyRÚs tConsumerThreadcBseZd„Zd„ZRS(cSs)tj|ddƒ||_||_dS(NR#tConsumer(RR RÕR@(RRÕR@((s!/usr/lib64/python2.7/threading.pyR s cSs>x7|jdkr9|jjƒ}|GH|jd|_qWdS(Nii(R@RÕRÙ(RRÖ((s!/usr/lib64/python2.7/threading.pyR˜s(R,R-R R˜(((s!/usr/lib64/python2.7/threading.pyRßs iiis Producer-%dig�íµ ÷ư>(RRtrangeR#RTR—RWR°( RÐRÚRßtNPtQLtNItQtPtiRAtC((s!/usr/lib64/python2.7/threading.pyt_testâs(       t__main__(JRItsysR%RÎt ImportErrorR­R,twarningst collectionsRRÔRRURRWt tracebackRR�t__all__tstart_new_threadR”t allocate_lockR3t get_identR!terrort ThreadErrortfilterwarningstDeprecationWarningRRRtobjectRRR.R0RRR R R1RRKR RjRRnR RpRxRzR’R"R“RRR½RÂRÄRÆRRRRRÈR RRÅt _shutdownRÉRt_threading_localRÏRé(((s!/usr/lib64/python2.7/threading.pyts„             u ¡ J  K  ÿ—         % R