/opt/imh/python3.13/lib/python3.13/__pycache__
NameSizeModeActions
abc.cpython-313.pyc79280644editdlrm
antigravity.cpython-313.pyc10000644editdlrm
argparse.cpython-313.pyc1040800644editdlrm
ast.cpython-313.pyc1030860644editdlrm
base64.cpython-313.pyc258320644editdlrm
bdb.cpython-313.pyc405800644editdlrm
bisect.cpython-313.pyc35120644editdlrm
bz2.cpython-313.pyc151800644editdlrm
calendar.cpython-313.pyc397080644editdlrm
cmd.cpython-313.pyc189770644editdlrm
code.cpython-313.pyc157990644editdlrm
codecs.cpython-313.pyc405720644editdlrm
codeop.cpython-313.pyc66550644editdlrm
colorsys.cpython-313.pyc45190644editdlrm
compileall.cpython-313.pyc206150644editdlrm
configparser.cpython-313.pyc689660644editdlrm
contextlib.cpython-313.pyc305090644editdlrm
contextvars.cpython-313.pyc2760644editdlrm
copy.cpython-313.pyc106450644editdlrm
copyreg.cpython-313.pyc75510644editdlrm
cProfile.cpython-313.pyc86790644editdlrm
csv.cpython-313.pyc207150644editdlrm
dataclasses.cpython-313.pyc478390644editdlrm
datetime.cpython-313.pyc4260644editdlrm
decimal.cpython-313.pyc30170644editdlrm
difflib.cpython-313.pyc720550644editdlrm
dis.cpython-313.pyc475320644editdlrm
doctest.cpython-313.pyc1076920644editdlrm
enum.cpython-313.pyc858660644editdlrm
filecmp.cpython-313.pyc150420644editdlrm
fileinput.cpython-313.pyc206480644editdlrm
fnmatch.cpython-313.pyc68190644editdlrm
fractions.cpython-313.pyc383840644editdlrm
ftplib.cpython-313.pyc423460644editdlrm
functools.cpython-313.pyc422860644editdlrm
genericpath.cpython-313.pyc78260644editdlrm
getopt.cpython-313.pyc84790644editdlrm
getpass.cpython-313.pyc73260644editdlrm
gettext.cpython-313.pyc225760644editdlrm
glob.cpython-313.pyc236810644editdlrm
graphlib.cpython-313.pyc102120644editdlrm
gzip.cpython-313.pyc319930644editdlrm
hashlib.cpython-313.pyc82910644editdlrm
heapq.cpython-313.pyc177850644editdlrm
hmac.cpython-313.pyc106750644editdlrm
imaplib.cpython-313.pyc626620644editdlrm
inspect.cpython-313.pyc1365370644editdlrm
io.cpython-313.pyc42900644editdlrm
ipaddress.cpython-313.pyc919790644editdlrm
keyword.cpython-313.pyc10560644editdlrm
linecache.cpython-313.pyc85670644editdlrm
locale.cpython-313.pyc590140644editdlrm
lzma.cpython-313.pyc157330644editdlrm
mailbox.cpython-313.pyc1187480644editdlrm
mimetypes.cpython-313.pyc249130644editdlrm
modulefinder.cpython-313.pyc284070644editdlrm
netrc.cpython-313.pyc93410644editdlrm
ntpath.cpython-313.pyc284840644editdlrm
nturl2path.cpython-313.pyc27520644editdlrm
numbers.cpython-313.pyc140470644editdlrm
opcode.cpython-313.pyc40770644editdlrm
operator.cpython-313.pyc173800644editdlrm
optparse.cpython-313.pyc675940644editdlrm
os.cpython-313.pyc458640644editdlrm
pdb.cpython-313.pyc1061180644editdlrm
pickle.cpython-313.pyc784190644editdlrm
pickletools.cpython-313.pyc804420644editdlrm
pkgutil.cpython-313.pyc199740644editdlrm
platform.cpython-313.pyc446900644editdlrm
plistlib.cpython-313.pyc431130644editdlrm
poplib.cpython-313.pyc184400644editdlrm
posixpath.cpython-313.pyc181150644editdlrm
pprint.cpython-313.pyc297130644editdlrm
profile.cpython-313.pyc225780644editdlrm
pstats.cpython-313.pyc378720644editdlrm
pty.cpython-313.pyc74200644editdlrm
pyclbr.cpython-313.pyc151590644editdlrm
pydoc.cpython-313.pyc1397200644editdlrm
py_compile.cpython-313.pyc100840644editdlrm
queue.cpython-313.pyc173480644editdlrm
quopri.cpython-313.pyc95750644editdlrm
random.cpython-313.pyc352710644editdlrm
reprlib.cpython-313.pyc111750644editdlrm
rlcompleter.cpython-313.pyc85870644editdlrm
runpy.cpython-313.pyc144060644editdlrm
sched.cpython-313.pyc76120644editdlrm
secrets.cpython-313.pyc25190644editdlrm
selectors.cpython-313.pyc263700644editdlrm
shelve.cpython-313.pyc133060644editdlrm
shlex.cpython-313.pyc148670644editdlrm
shutil.cpython-313.pyc674670644editdlrm
signal.cpython-313.pyc45590644editdlrm
site.cpython-313.pyc316620644editdlrm
smtplib.cpython-313.pyc473750644editdlrm
socket.cpython-313.pyc422340644editdlrm
socketserver.cpython-313.pyc346670644editdlrm
sre_compile.cpython-313.pyc6420644editdlrm
sre_constants.cpython-313.pyc6450644editdlrm
sre_parse.cpython-313.pyc6380644editdlrm
ssl.cpython-313.pyc652190644editdlrm
stat.cpython-313.pyc55380644editdlrm
statistics.cpython-313.pyc711130644editdlrm
string.cpython-313.pyc116660644editdlrm
stringprep.cpython-313.pyc252750644editdlrm
struct.cpython-313.pyc3400644editdlrm
subprocess.cpython-313.pyc819690644editdlrm
symtable.cpython-313.pyc232110644editdlrm
tabnanny.cpython-313.pyc124320644editdlrm
tarfile.cpython-313.pyc1258450644editdlrm
tempfile.cpython-313.pyc410080644editdlrm
textwrap.cpython-313.pyc179490644editdlrm
this.cpython-313.pyc14270644editdlrm
threading.cpython-313.pyc633120644editdlrm
timeit.cpython-313.pyc146530644editdlrm
token.cpython-313.pyc35880644editdlrm
tokenize.cpython-313.pyc254490644editdlrm
trace.cpython-313.pyc339780644editdlrm
traceback.cpython-313.pyc721390644editdlrm
tracemalloc.cpython-313.pyc274280644editdlrm
tty.cpython-313.pyc26790644editdlrm
turtle.cpython-313.pyc1751510644editdlrm
types.cpython-313.pyc155600644editdlrm
typing.cpython-313.pyc1545970644editdlrm
uuid.cpython-313.pyc323970644editdlrm
warnings.cpython-313.pyc295530644editdlrm
wave.cpython-313.pyc332520644editdlrm
weakref.cpython-313.pyc318180644editdlrm
webbrowser.cpython-313.pyc269010644editdlrm
zipapp.cpython-313.pyc104090644editdlrm
zipimport.cpython-313.pyc265220644editdlrm
_aix_support.cpython-313.pyc47320644editdlrm
_android_support.cpython-313.pyc76370644editdlrm
_apple_support.cpython-313.pyc34970644editdlrm
_collections_abc.cpython-313.pyc467080644editdlrm
_colorize.cpython-313.pyc40260644editdlrm
_compat_pickle.cpython-313.pyc72070644editdlrm
_compression.cpython-313.pyc78200644editdlrm
_ios_support.cpython-313.pyc27310644editdlrm
_markupbase.cpython-313.pyc124480644editdlrm
_opcode_metadata.cpython-313.pyc106930644editdlrm
_osx_support.cpython-313.pyc181420644editdlrm
_pydatetime.cpython-313.pyc945900644editdlrm
_pydecimal.cpython-313.pyc2170580644editdlrm
_pyio.cpython-313.pyc1117930644editdlrm
_pylong.cpython-313.pyc111730644editdlrm
_py_abc.cpython-313.pyc72070644editdlrm
_sitebuiltins.cpython-313.pyc49170644editdlrm
_strptime.cpython-313.pyc345000644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-313.pyc585830644editdlrm
_threading_local.cpython-313.pyc55380644editdlrm
_weakrefset.cpython-313.pyc120640644editdlrm
__future__.cpython-313.pyc47370644editdlrm
__hello__.cpython-313.pyc9810644editdlrm
Edit: /opt/imh/python3.13/lib/python3.13/__pycache__/threading.cpython-313.pyc (63312B)
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:Xde[ (aUR 5 gggrm)rGr]rBrFidentrC_set_native_idrK new_idents r) _after_forkThread._after_forksQ %%'  #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)rfThread._bootstraps+   ! ! # ~~$, s 00c"[5Ulgrm)rrBrJs r) _set_identThread._set_idents k r*c"[5Ulgrm)r"rDrJs r)rUThread._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)rqrCrUrGrrcrQrBrdr2r,rr&rrkrL_deleterJs r)rnThread._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)rcrQrrJs 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.nameHs#  @"@@ zzr*cTUR(dS5e[U5Ulg)Nr{)rHr:r=)rKrRs r)rRrSs"  @"@@ 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.identXs#  @"@@ {{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_ides#$$ 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_alivepsA  @"@@ }}##%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.daemon{s#  @"@@ ~~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)rrUrVrrrHrLrXrZrhrkrfrqrCrUrnrvr}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)rrrg__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)rrFs(r*rc,\rSrSrSrSr\\4SjrSr g)_DeleteDummyThreadOnDeliXzJ 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*cU URUR5URLaURURS5 SSS5 g!,(df  g=frm)getrrpop)rKrcrQs r)__del___DeleteDummyThreadOnDel.__del__hs> {{4<<(D,>,>> DLL$/  s AA A)rrN) rrUrVrrrLrcrQrrr/r*r)rrXs :**>*@*@011r*Nc[S5e)Nzcannot join a dummy thread)rirs r)r}_DummyThread.joins788r*cbUb[UlSUlSUl[R XS9 g)NrFrW)rrTr=rArrXrVs r)rX_DummyThread._after_forks.  (DN%DJ"DN45r*)rTrArFr=rm) rrUrVrrLrr}rXrr/r*r)rrus &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)rcrrQrdr/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)listrQvaluesrdr/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)rcrrQrrdr/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)rrcrQrrSrrrrupdaterMrXrdrr) new_activecurrentthreadsrrTs r)rXrXsJ )+&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_threadredaemon_threads_allowedr@ allocate_lockrFLockType _LockTyperrrrErrrr"rCrr;errorrrr=r r#r_threading_localr&r2rr rrr!rrrBr>r rrrrrir__next__r3r5rcrQrdrMrrrrr tracebackrrr__excepthook__rKrrrrrr rrrrr rrrrrr rXrr r/r*r)r sA#%,, <!66!88&&    $$11%%     7733#))M! NN?#mm mmG!!  ''   %# $&{{z qqhTTn*!y*!ZOOz`!`!F  !9  &W   I ddN +<\0jF< (& (W00:666@   * : > <  } 6*!Z 3"## 4$g1,++,H#"# G'&&'H$(=& 13O&(sYH)H1 I/I I" H.-H.1H=<H=I  I  II"!JJ