eSrSSKrSSKrSSKrSSKrSSKJr SSK J r SSK J r SSKJr /SQr\R*r\R.r\R2r\R6r\R:r\R>r\R@r \RBr!\RDr"\RFr#\RHr$Sr%\RMS 5 \RPr)\RTr+\RXr,CSS KJ-r. Sq0Sq1S r2Sr3Sr4Sr5Sr6Sr7\r8Sr*"SS5r9\9r:"SS5r;"SS5r<"SS\<5r="SS5r>"SS5r?"S S!\@5rA\"S"5RrCS#rD\*"5qE0rF0rG\ "5rH"S$S%5rISS&KJJqKJLrM [rRS-rS"S.S/\I5rT"S0S1\I5rU\."5rV"S2S35rW"S4S5\I5rXS6rYS7rZS8r[S9r\S:r]S;r^/r_S q`S<raSS=KJbrb \U"5qcS>rS?rdS@re\f"\SA5(a\R"\eSB9 gg!\a SSKJr GNf=f!\'a S r%GNtf=f!\'a Sr+GNjf=f!\a SS K/J.r. GNif=f!\a SS'KNJOrP SS(KJQrQ \Q"S)S*5rLS+rMS,qKNf=f)Cz;Thread module emulating a subset of Java's threading model.N) monotonic)WeakSet)count)deque) get_ident active_count Conditioncurrent_thread enumerate main_thread TIMEOUT_MAXEventLockRLock SemaphoreBoundedSemaphoreThreadBarrierBrokenBarrierErrorTimer ThreadError setprofilesettracelocal stack_size excepthookExceptHookArgsgettrace getprofilesetprofile_all_threadssettrace_all_threadsT get_native_idF)_local)rcUqg)zSet 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 _profile_hookfuncs //opt/imh/python3.13/lib/python3.13/threading.pyrrHs McF[U5 [R"U5 g)zSet a profile function for all threads started from the threading module and all Python threads that are currently executing. The func will be passed to sys.setprofile() for each thread, before its run() method is called. N)r_sys_setprofileallthreadsr's r)r r Qstt$r*c[$)z;Get the profiler function as set by threading.setprofile().r%r*r)rr[s r*cUqg)zSet 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 _trace_hookr's r)rr_s Kr*cF[U5 [R"U5 g)zSet a trace function for all threads started from the threading module and all Python threads that are currently executing. The func will be passed to sys.settrace() for each thread, before its run() method is called. N)rr,_settraceallthreadsr's r)r!r!hs TNT"r*c[$)z6Get the trace function as set by threading.settrace().r1r/r*r)rrrs r*cU(dU(a[R"S[SS9 [c [ U0UD6$[U0UD6$)aFactory 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. zDPassing arguments to RLock is deprecated and will be removed in 3.15 stacklevel)warningswarnDeprecationWarning_CRLock_PyRLock)argskwargss r)rrzsE v R  ((( D #F ##r*c\\rSrSrSrSrSrSrSSjr\r Sr Sr S r S r S rS rS rg)_RLockaThis class implements reentrant lock objects. 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. c>[5UlSUlSUlgNr)_allocate_lock_block_owner_countselfs r)__init___RLock.__init__s$&   r*c BURn[URnSURR 5(aSOSUR RUR RUUR[[U554-$![a N|f=f)Nz)<%s %s.%s object owner=%r count=%d at %s>lockedunlocked) rH_activenameKeyErrorrGrO __class__ __module__ __qualname__rIhexid)rKowners r)__repr___RLock.__repr__s  EN''E; **,,H* NN % % NN ' '  KK 4M >      sB BBcTURR5 SUlSUlgrE)rG_at_fork_reinitrHrIrJs r)r]_RLock._at_fork_reinits  ##%  r*c[5nURU:XaU=RS- slgURR X5nU(a X0lSUlU$)a}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. When invoked with the floating-point timeout argument set to a positive value, block for at most the number of seconds specified by timeout and as long as the lock cannot be acquired. Return true if the lock has been acquired, false if the timeout has elapsed. )rrHrIrGacquire)rKblockingtimeoutmercs r)ra_RLock.acquiresP4[ ;;"  KK1 K [[  3 KDK r*cUR[5:wa [S5eURS- =UlnU(d"SUlURR 5 gg)aRelease 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. cannot release un-acquired lockr`N)rHr RuntimeErrorrIrGrelease)rKrs r)rj_RLock.releasesQ ;;)+ %@A A"kkAo- eDK KK   !r*c$UR5 gNrjrKtvtbs r)__exit___RLock.__exit__  r*cVURR5 UuUlUlgrm)rGrarIrH)rKstates r)_acquire_restore_RLock._acquire_restores  #(  T[r*cURS:Xa [S5eURnSUlURnSUlURR 5 X4$)Nrrh)rIrirHrGrj)rKrrYs r) _release_save_RLock._release_savesR ;;! @A A     ~r*c0UR[5:H$rm)rHrrJs r) _is_owned_RLock._is_owneds{{ik))r*cLUR[5:wagUR$rE)rHrrIrJs r)_recursion_count_RLock._recursion_counts ;;)+ %{{r*)rGrIrHN)T)__name__rUrV__firstlineno____doc__rLrZr]ra __enter__rjrsrxr{r~r__static_attributes__r/r*r)rBrBsA   "HI". )* r*rBcv\rSrSrSrSSjrSrSrSrSr S r S r S r SS jr SS jrSSjrSrSrSrg)r i aRClass that implements a condition variable. 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. NcXUc [5nXlURUlURUl[ US5(aUR Ul[ US5(aUR Ul[ US5(aURUl[5Ul g)Nr{rxr~) r_lockrarjhasattrr{rxr~_deque_waiters)rKlocks r)rLCondition.__init__s <7D || ||  4 ) )!%!3!3D  4+ , ,$($9$9D ! 4 % %!^^DN r*clURR5 URR5 grm)rr]rclearrJs r)r]Condition._at_fork_reinit+s" ""$ r*c6URR5$rm)rrrJs r)rCondition.__enter__/szz##%%r*c4URR"U6$rm)rrs)rKr?s r)rsCondition.__exit__2szz""D))r*cJSUR[UR54-$)Nz)rlenrrJs r)rZCondition.__repr__5s$ C 4F'GGGr*c8URR5 grm)rrjrJs r)r{Condition._release_save8 r*c8URR5 grm)rra)rKxs r)rxCondition._acquire_restore;rr*czURRS5(aURR5 gg)NFT)rrarjrJs r)r~Condition._is_owned>s/ ::  e $ $ JJ   r*ctUR5(d [S5e[5nUR5 URR U5 UR 5nSnUcUR5 SnO*US:aURSU5nOURS5nUURU5 U(dURRU5 $$![a $f=f!URU5 U(d-URRU5 f![a ff=ff=f)aWait 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 notify_all() 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. zcannot wait on un-acquired lockFTr) r~rirFrarappendr{rxremove ValueError)rKrcwaiter saved_stategotits r)waitCondition.waitGs.~~@A A! V$((*   Q;"NN49E"NN51E  ! !+ .MM((0"  ! !+ .MM((0!sC)AC0C  C-,C-0D7 D&%D7& D30D72D33D7cSnUnU"5nU(dKUb'Uc[5U-nOU[5- nUS::aU$URU5 U"5nU(dMKU$)zWait until a condition evaluates to True. predicate should be a callable which result will be interpreted as a boolean value. A timeout may be provided giving the maximum time to wait. Nr)_timer)rK predicatercendtimewaittimeresults r)wait_forCondition.wait_forwso#?#g0G&0H1}  IIh [F& r*c4UR5(d [S5eURnU(aEUS:a>USnUR5 US-nUR U5 U(a US:aM<gggg![a N1f=f![ a N/f=f)a#Wake 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. z!cannot notify on un-acquired lockrr`N)r~rirrjrr)rKnwaitersrs r)notifyCondition.notifys~~BC C--!a%QZF  Q v&!a%g%g       s$A:B : BB BBcLUR[UR55 g)zWake 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)rrrrJs r) notify_allCondition.notify_alls C &'r*cXSSKnUR"S[SS9 UR5 g)zfWake up all threads waiting on this condition. This method is deprecated, use notify_all() instead. rNz3notifyAll() is deprecated, use notify_all() insteadr7r8)r:r;r<rrKr:s r) notifyAllCondition.notifyAlls%  K(Q 8 r*)rxr~rr{rrarjrmr`)rrUrVrrrLr]rrsrZr{rxr~rrrrrrr/r*r)r r sJ !$&*H.`.<( r*r cF\rSrSrSrS SjrSrS Sjr\rS Sjr Sr S r g) ria3This class implements semaphore objects. 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. cbUS:a [S5e[[55UlXlg)Nrz$semaphore initial value must be >= 0)rr r_cond_value)rKvalues r)rLSemaphore.__init__s( 19CD Dtv&  r*c URnSURSURS[U5SSURS3 $)N<. at #x: value=>)rTrUrVrXrrKclss r)rZSemaphore.__repr__sKnnCNN#1S%5%5$6d2d8B-H++a) *r*NcU(dUb [S5eSnSnUR URS:Xa]U(dOlUb%Uc[5U-nOU[5- nUS::aODURR U5 URS:XaM]U=RS-slSnSSS5 U$!,(df  U$=f)aLAcquire 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. When invoked with a timeout other than None, it will block for at most timeout seconds. If acquire does not complete successfully in that interval, return false. Return true otherwise. Nz.can't specify timeout for non-blocking acquireFrr`T)rrrrr)rKrbrcrers r)raSemaphore.acquires0G/MN N  ZZ++"&"''G"3")EG"3"a<! (++" q  Z sA,B5B55 CcUS:a [S5eUR U=RU- slURRU5 SSS5 g!,(df  g=f)zRelease a semaphore, incrementing the internal counter by one or more. When the counter is zero on entry and another thread is waiting for it to become larger than zero again, wake up that thread. r`n must be one or moreN)rrrrrKrs r)rjSemaphore.releasesH q545 5 ZZ KK1 K JJ  a ZZs 1A A&c$UR5 grmrnros r)rsSemaphore.__exit__rur*)rrr)TN) rrUrVrrrLrZrarrjrsrr/r*r)rrs( * +ZI !r*rc@^\rSrSrSrSU4SjjrSrSSjrSrU=r $)riaImplements a 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. c0>[TU]U5 Xlgrm)superrL_initial_value)rKrrTs r)rLBoundedSemaphore.__init__)s #r*c URnSURSURS[U5SSURSUR S3 $)Nrrrrr/r)rTrUrVrXrrrs r)rZBoundedSemaphore.__repr__-sYnnCNN#1S%5%5$6d2d8B-H++a(;(;'>"!C$4$4#5T"T(2bPQRRr*c8URR5 grm)rr]rJs r)r]Event._at_fork_reinitYs ""$r*cUR$)z5Return true if and only if the internal flag is true.)rrJs r)is_set Event.is_set]s zzr*cVSSKnUR"S[SS9 UR5$)ziReturn true if and only if the internal flag is true. This method is deprecated, use is_set() instead. rNz+isSet() is deprecated, use is_set() insteadr7r8)r:r;r<rrs r)isSet Event.isSetas'  C(Q 8{{}r*cUR SUlURR5 SSS5 g!,(df  g=f)zSet the internal flag to true. All threads waiting for it to become true are awakened. Threads that call wait() once the flag is true will not block at all. TN)rrrrJs r)r Event.setls,ZZDJ JJ ! ! #ZZs "8 Ac^UR SUlSSS5 g!,(df  g=f)zReset the internal flag to false. Subsequently, threads calling wait() will block until set() is called to set the internal flag to true again. FNrrrJs r)r Event.clearwsZZDJZZs ,NcUR URnU(dURRU5nUsSSS5 $!,(df  g=f)aBlock 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)rrr)rKrcsignaleds r)r Event.waits6ZZzzH::??73 ZZs 0A Arrm)rrUrVrrrLrZr]rrrrrrr/r*r)rrEs0S %  $r*rc\rSrSrSrSSjrSrSSjrSrSr S r S r S r S r S r\S5r\S5r\S5rSrg)rizImplements a Barrier. Useful for synchronizing a fixed number of threads at known synchronization points. Threads block on 'wait()' and are simultaneously awoken once they have all made that call. NcUS:a [S5e[[55UlX lX0lXlSUlSUlg)a/Create a barrier, initialised to 'parties' threads. 'action' is a callable which, when supplied, will be called by one of the threads after they have all entered the barrier and just prior to releasing them all. If a 'timeout' is provided, it is used as the default for all subsequent 'wait()' calls. r`zparties must be >= 1rN) rr rr_action_timeout_parties_staterI)rKpartiesactionrcs r)rLBarrier.__init__sB Q;34 4tv&      r*c URnUR(a*SURSURS[ U5SS3$SURSURS[ U5SSUR SUR S3 $) Nrrrrz : broken>z : waiters=rr)rTbrokenrUrVrX n_waitingrrs r)rZBarrier.__repr__snn ;;s~~&a(8(8'9bhr])T TCNN#1S%5%5$6d2d8B-H NN+1T\\N!= >r*cUc URnUR UR5 URnU=RS- slUS-UR:XaUR 5 OUR U5 UU=RS-slUR5 sSSS5 $!U=RS-slUR5 f=f!,(df  g=f)a&Wait for the barrier. When the specified number of threads have started waiting, they are all simultaneously awoken. If an 'action' was provided for the barrier, one of the threads will have executed that callback prior to returning. Returns an individual index number from 0 to 'parties-1'. Nr`)rr_enterrIr_release_wait_exit)rKrcindexs r)r Barrier.waits ?mmG ZZ KKMKKE KK1 K 19 -MMOJJw' q  Z q  Zs#2C6B4%C4'CC C,cURS;a,URR5 URS;aM,URS:a[eURS:Xdeg)Nrr`r)rrrrrJs r)r Barrier._entersOkkW$ JJOO kkW$ ;;?$ ${{ar*cUR(aUR5 SUlURR5 g! UR 5 e=f)Nr`)rrrr_breakrJs r)r Barrier._releasesA || DK JJ ! ! #  KKM s AAAc^TRRU4SjU5(dTR5 [eTRS:a[eTRS:Xdeg)Nc">TRS:g$rErrJsr)Barrier._wait..sDKK1,Return the number of threads currently waiting at the barrier.r)rrIrJs r)rBarrier.n_waiting6s ;;! ;; r*c URS:H$)z0Return True if the barrier is in a broken state.r!rrJs r)rBarrier.broken?s{{b  r*)rrrIrrrNNrm)rrUrVrrrLrZrr r r rr"r%rpropertyrrrrr/r*r)rrsu$><   ($( !!r*rc\rSrSrSrg)riEr/N)rrUrVrrr/r*r)rrEsr*rr`cU[5-$rm)_counter) name_templates r)_newnamer5Ks 8: %%r*c8\rSrSrSrSrSSS.SjjrSSjrSrS r S r S r S r \ (aS rSrSrSSjr\S5r\R(S5r\S5r\ (a\S5rSr\S5r\R(S5rSrSrSrSrSrg)riZzA class that represents a thread of control. This class can be safely subclassed in a limited fashion. There are two ways to specify the activity: by passing a callable object to the constructor, or by overriding the run() method in a subclass. FN)daemoncVUbS5eUc0nU(a [U5nO$[S5nUbURnUSUS3- nX lX0lX@lXPlUb(U(a[5(d [S5eX`l O[5RUl SUl [(aSUl[!5Ul[%5UlSUl[*R,Ul[15Ul[4R7U5 g![a Nf=f)aThis 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 a list or tuple of arguments 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. Nz#group argument must be None for nowz Thread-%dz ()z4daemon threads are disabled in this (sub)interpreterT)strr5rAttributeError_target_name_args_kwargs_daemon_threads_allowedri _daemonicr r7_ident_HAVE_THREAD_NATIVE_ID _native_id _ThreadHandle_handler_started _initializedr,stderr_stderr_make_invoke_excepthook_invoke_excepthook _danglingadd)rKgrouptargetrRr?r@r7 target_names r)rLThread.__init__es.}CCC} >F t9DK(D!"(//Kb Q//D     577"#YZZ#N+-44DN ! !"DO$   {{ "9"; d/&sD D('D(cURR5 Ub#XlURRU:Xdeggrm)rGr]rBrFidentrK new_idents r) _after_forkThread._after_forks: %%'  #K<<%%2 22 r*c~UR(dS5eSnURR5(aSnURR 5(aSnUR (aUS- nUR bUSUR -- nSURR<SUR<S U<S 3$) Nz Thread.__init__() was not calledinitialstartedstoppedz daemonz %sr(z, z)>) rHrGrrFis_donerArBrTrr=)rKrs r)rZThread.__repr__s  D"DD  ==   ! !F <<   ! !F >> i F ;; " edkk) )F!%!8!8$**fMMr*cUR(d [S5eURR5(a [S5e[ U[ U'SSS5 [ URURURS9 URR5 g!,(df  NS=f![a) [ [ U SSS5 e!,(df  e=ff=f)aStart the thread's activity. It must be called at most once per thread object. It arranges for the object's run() method to be invoked in a separate thread of control. This method will raise a RuntimeError if called more than once on the same thread object. zthread.__init__() not calledz threads can only be started onceN)handler7) rHrirGr_active_limbo_lock_limbo_start_joinable_thread _bootstraprFr7 ExceptionrrJs r)start Thread.starts  => > ==   ! !AB B F4L   "4??4<<*.++ 7    #4L$ $#  s0 B$ )B5$ B25C(C C( C$ C(cURb&UR"UR0URD6 U?U?U?g!U?U?U?f=f)a0Method 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<r>r?rJs r)run Thread.runsG 7||' djj9DLL9 dj$, dj$,s 3<AcfUR5 g! UR(a [cge=frm)_bootstrap_innerrAr,rJs r)reThread._bootstraps+   ! ! # ~~$, s 00c"[5Ulgrm)rrBrJs r) _set_identThread._set_idents k r*c"[5Ulgrm)r"rDrJs r)_set_native_idThread._set_native_ids +oDOr*c4UR5 [(aUR5 URR 5 [  U[ UR'[U SSS5 [(a[R"[5 [(a[R"[5 UR5 UR!5 g!,(df  Nz=f! URU5 N7=f!UR!5 f=frm)rprCrsrGrrbrQrBrcr2r,rr&rrjrL_deleterJs r)rmThread._bootstrap_inners  OO %%##% MM   #'+ $4L${ k*} . .  LLN$# .''- LLNs7A D C(AD;C- C*&D-DDDcb[ [[5 SSS5 g!,(df  g=f)zARemove current thread from the dict of currently running threads.N)rbrQrrJs r)rvThread._deletes  $  s  .cUR(d [S5eURR5(d [S5eU[ 5La [S5eUb [ US5nUR RU5 g)aWait until the thread terminates. This blocks the calling thread until the thread whose join() method is called terminates -- either normally or through an unhandled exception 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). As join() always returns None, you must call is_alive() after join() to decide whether a timeout happened -- if the thread is still alive, the join() call timed out. When the timeout argument is not present or None, the operation will block until the thread terminates. A thread can be join()ed many times. join() raises a RuntimeError if an attempt is made to join the current thread as that would cause a deadlock. It is also an error to join() a thread before it has been started and attempts to do so raises the same exception. Thread.__init__() not calledz'cannot join thread before it is startedzcannot join current threadNr)rHrirGrr maxrFjoinrs r)r} Thread.join st0  => >}}##%%HI I ># #;< <  '1oG '"r*cJUR(dS5eUR$)zA 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. r{)rHr=rJs r)rR Thread.nameFs#  @"@@ zzr*cTUR(dS5e[U5Ulg)Nr{)rHr:r=)rKrRs r)rRrQs"  @"@@ Y r*cJUR(dS5eUR$)aThread identifier of this thread or None if it has not been started. This is a nonzero integer. See the 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. r{)rHrBrJs r)rT Thread.identVs#  @"@@ {{r*cJUR(dS5eUR$)zNative integral thread ID of this thread, or None if it has not been started. This is a non-negative integer. See the get_native_id() function. This represents the Thread ID as reported by the kernel. r{)rHrDrJs r) native_idThread.native_idcs#$$ D&D D$?? "r*cUR(dS5eURR5=(a URR 5(+$)zReturn whether the thread is alive. This method returns True just before the run() method starts until just after the run() method terminates. See also the module function enumerate(). r{)rHrGrrFr^rJs r)is_aliveThread.is_alivensA  @"@@ }}##%Ddll.B.B.D*DDr*cJUR(dS5eUR$)aA boolean value indicating whether this thread is a daemon thread. 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 only daemon threads are left. r{)rHrArJs r)r7 Thread.daemonys#  @"@@ ~~r*cUR(d [S5eU(a[5(d [S5eURR 5(a [S5eXlg)Nr{z/daemon threads are disabled in this interpreterz)cannot set daemon status of active thread)rHrir@rGrrA)rKdaemonics r)r7rsS  => > 355PQ Q ==   ! !JK K!r*cNSSKnUR"S[SS9 UR$)zgReturn whether this thread is a daemon. This method is deprecated, use the daemon attribute instead. rNz:isDaemon() is deprecated, get the daemon attribute insteadr7r8r:r;r<r7rs r)isDaemonThread.isDaemons%  R(Q 8{{r*cDSSKnUR"S[SS9 Xlg)zdSet whether this thread is a daemon. This method is deprecated, use the .daemon property instead. rNz;setDaemon() is deprecated, set the daemon attribute insteadr7r8r)rKrr:s r) setDaemonThread.setDaemons  S(Q 8 r*cNSSKnUR"S[SS9 UR$)ztReturn a string used for identification purposes only. This method is deprecated, use the name attribute instead. rNz7getName() is deprecated, get the name attribute insteadr7r8r:r;r<rRrs r)getNameThread.getNames%  O(Q 8yyr*cDSSKnUR"S[SS9 Xlg)zbSet the name string for this thread. This method is deprecated, use the name attribute instead. rNz7setName() is deprecated, set the name attribute insteadr7r8r)rKrRr:s r)setNameThread.setNames  O(Q 8 r*)r>rArFrBrHrLr?r=rDrGrJr<r7rR)NNNr/Nrm)rrUrVrrrHrLrWrZrgrjrerprCrsrmrvr}r0rRsetterrTrrr7rrrrrr/r*r)rrZsL59!%9159v  N87"(" .,%$#L [[    #  # E   ]]""    r*r) _excepthook_ExceptHookArgs)print_exception) namedtuplerz'exc_type exc_value exc_traceback threadc[U6$rm)r)r?s r)rrs %%r*cUR[:Xag[b"[Rb[RnO)URbURR nUcgOgURbURR nO [5n[SUS3USS9 [URURURUS9 UR5 g)z) Handle uncaught Thread.run() exception. NzException in thread :Tfileflush)r) exc_type SystemExitr,rIthreadrJrRrprint_print_exception exc_value exc_tracebackr)r?rIrRs r)rrs ==J &    7[[F [[ $[[((F~  ;; ";;##D;D $TF!, '8J8J$ & r*c^^^^^[m[RmTc [S5eTc [S5e[Rm[m[mUUUUU4SjnU$)Nzthreading.excepthook is Nonezsys.excepthook is NonecZ>[nUcTn[/T "5QUP5nU"U5 Sng![alnSUlATbTRb TRnO UR nT"SUSS9 TbTRb TRnOT nU"T "56 SnANtSnAff=f!Snf=f)NTz"Exception in threading.excepthook:r)rrrf__suppress_context__rIrJ) rhookr?excrIsys_excepthook local_print local_sysold_excepthookold_sys_excepthook sys_exc_infos r)invoke_excepthook2_make_invoke_excepthook..invoke_excepthooks D|%!";LN";F"; ,. *4;;7 ! !    ! #'GDKK   s :B B%)rFrBN)rrUrVrrLrr/r*r)rrDs(r*rc$\rSrSrSrSrSrSrg)_DeleteDummyThreadOnDeliVzJ Helper class to remove a dummy thread from threading._active on __del__. cHXlURUlU[lgrm) _dummy_threadrT_tident_thread_local_info_track_dummy_thread_ref)rK dummy_threads r)rL _DeleteDummyThreadOnDel.__init__[s )#)) 6:2r*c[ [RUR5URLa [R URS5 SSS5 g!,(df  g=frm)rbrQgetrrpoprJs r)__del___DeleteDummyThreadOnDel.__del__fs> {{4<<(D,>,>> DLL$/  s A A A+)rrN)rrUrVrrrLrrr/r*r)rrVs :0r*rc4\rSrSrSrSrSSjrSSjrSrg) _DummyThreadisc[RU[S5[5S9 URR 5 UR 5 [UR5Ul [(aUR5 [ U[UR'SSS5 [U5 g!,(df  N=f)NzDummy-%dr)rrLr5r@rGrrprrBrFrCrsrbrQrrJs r)rL_DummyThread.__init__us8J#768  :  *4;;7 ! !    ! #'GDKK  % s B44 CcURR5(d URR5(ag[ S5e)NTzthread is not alive)rFr^rGrrirJs r)r_DummyThread.is_alives6||##%%$--*>*>*@*@011r*Nc[S5e)Nzcannot join a dummy thread)rirs r)r}_DummyThread.joins788r*cbUb[UlSUlSUl[R XS9 g)NrFrV)rrTr=rArrWrUs r)rW_DummyThread._after_forks.  (DN%DJ"DN45r*)rTrArFr=rm) rrUrVrrLrr}rWrr/r*r)rrss &2 96r*rcZ[[5$![a [5s$f=f)zReturn the current Thread object, corresponding to the caller's thread of control. If the caller's thread of control was not created through the threading module, a dummy thread object with limited functionality is returned. )rQrrSrr/r*r)r r s+y{## ~s **cJSSKnUR"S[SS9 [5$)zReturn the current Thread object, corresponding to the caller's thread of control. This function is deprecated, use current_thread() instead. rNz;currentThread() is deprecated, use current_thread() insteadr7r8)r:r;r<r r:s r) currentThreadrs$  MMO$4  r*c[ [[5[[5-sSSS5 $!,(df  g=f)zReturn the number of Thread objects currently alive. The returned count is equal to the length of the list returned by enumerate(). N)rbrrQrcr/r*r)rrs# 7|c&k)   s0 >cJSSKnUR"S[SS9 [5$)zpReturn the number of Thread objects currently alive. This function is deprecated, use active_count() instead. rNz7activeCount() is deprecated, use active_count() insteadr7r8)r:r;r<rrs r) activeCountrs#  MMK$4 >r*cx[[R55[[R55-$rm)listrQvaluesrcr/r*r) _enumeraters$  !D$9 99r*c[ [[R55[[R55-sSSS5 $!,(df  g=f)zReturn a list of all Thread objects currently alive. The list includes daemonic threads, dummy thread objects created by current_thread(), and the main thread. It excludes terminated threads and threads that have not yet been started. N)rbrrQrrcr/r*r)r r s2 GNN$%V]]_(==   s ;A  Acl^^^[(a [S5e[RUUU4Sj5 g)aCPython internal: register *func* to be called before joining threads. The registered *func* is called with its arguments just before all non-daemon threads are joined in `_shutdown()`. It provides a similar purpose to `atexit.register()`, but its functions are called prior to threading shutdown instead of interpreter shutdown. For similarity to atexit, the registered functions are called in reverse. z$can't register atexit after shutdownc>T"T0TD6$rmr/)argr(r@sr)r"_register_atexit..sdC&:6&:r*N)_SHUTTING_DOWNri_threading_atexitsr)r(rr@s```r)_register_atexitrs%~ABB:;r*)rc[RR5(a[5(agSq[ [ 5H nU"5 M [5(a[RR5 [5 g)zK Wait until the Python thread state of all non-daemon threads get deleted. NT) _main_threadrFr^_is_main_interpreterrreversedr _set_done_thread_shutdown) atexit_calls r) _shutdownrsh##%%*>*@*@N 23  4&&(r*c[$)zReturn the main thread object. In normal conditions, the main thread is the thread from which the Python interpreter was started. )rr/r*r)r r s  r*c&[5q0n[[5nUq[ [[55nUR[5 UH6nX1La[5nURUS9 X0U'M&UR5 M8 [R5 [R5 [RU5 [[5S:XdeSSS5 g![a [ 5nNf=f!,(df  g=f)zD Cleanup threading module state that should not exist after a fork. rr`N)rrbrQrrSrrrrupdaterMrWrcrr) new_activecurrentthreadsrrTs r)rWrWsJ )+&L jl#y!F ! ""U"3$*5!""$   z"7|q   )    -    sC(B7D(C?>C? Dregister_at_fork)after_in_child)hros_ossysr,_threadr:timerr _weakrefsetr itertoolsrrI _collectionsrr ImportError collections__all__start_joinable_threadrddaemon_threads_allowedr@ allocate_lockrFLockType _LockTyperrrrErrrr"rCrr;errorrrr=r r#r_threading_localr&r2rr rrr!rrrBr>r rrrrrir__next__r3r5rbrQrcrMrrrrr tracebackrrr__excepthook__rKrrrrrr rrrrr rrrrrr rWrr r/r*r)r sA#%,, <!66!88&&    $$11%%     7733#))M! NN?#mm mmG!!  ''   %# $&{{z qqhTTn*!y*!ZOOz`!`!F  !9  &W   I bbJ +<\0jF< (& (W00:666@   * : > <  } 6*!Z 3"## 4$c1,++,H#"# G'&&'D$(=& 13O&(sYH)H1 I/I I" H.-H.1H=<H=I  I  II"!JJ