python (3.12.0)

(root)/
lib/
python3.12/
multiprocessing/
__pycache__/
queues.cpython-312.opt-2.pyc

̑e0/gdZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
mZddlZddl
mZddl
mZej j"ZddlmZmZmZmZmZGdd	eZeZGd
deZGdd
eZy))QueueSimpleQueue
JoinableQueueN)EmptyFull)
connection)context)debuginfoFinalizeregister_after_fork
is_exitingceZdZddZdZdZdZddZddZddZ	d	Z
d
ZdZdZ
d
ZdZdZdZdZedZedZedZedZeej4Zy)rc|dkrddlm}||_tjd\|_|_|j|_tj|_tjdk(rd|_n|j|_|j||_d|_|j%tjdk7rt'|t(j*yy)Nrr)
SEM_VALUE_MAXFduplexwin32)synchronizer_maxsizer	Pipe_reader_writerLock_rlockosgetpid_opidsysplatform_wlockBoundedSemaphore_sem
_ignore_epipe_resetrr_after_forkselfmaxsizectxs   J/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/multiprocessing/queues.py__init__zQueue.__init__%sa<=
%/__E%B"dlhhjYY[
<<7"DK((*DK((1	"
<<7"e&7&78#ctj||j|j|j|j
|j|j|j|jfSN)
r
assert_spawningr%rrrrr"r$rr)s r,__getstate__zQueue.__getstate__9sP%""DMM4<<T[[$))TZZA	Ar.c	|\|_|_|_|_|_|_|_|_|jyr0)	r%rrrrr"r$rr&r)states  r,__setstate__zQueue.__setstate__>s5<A	:	T]DL$,	
dk49dj
r.c>td|jdy)NzQueue._after_fork()T)
after_fork)rr&r2s r,r'zQueue._after_forkCs
#$t$r.c|r|jjn,tjtj|_tj|_d|_d|_	d|_
d|_d|_|jj|_|j j"|_|j j&|_yNF)	_notempty_at_fork_reinit	threading	Conditionrcollectionsdeque_buffer_thread_jointhread_joincancelled_closed_closer
send_bytes_send_bytesr
recv_bytes_recv_bytespoll_poll)r)r9s  r,r&zQueue._resetGsNN**,&001ABDN"((*#<<22<<22\\&&
r.Ncb|jrtd|d|jj||st|j
5|j|j|jj||j
jdddy#1swYyxYwNzQueue z
 is closed)rF
ValueErrorr$acquirerr<rC
_start_threadrBappendnotifyr)objblocktimeouts    r,putz	Queue.putVs<<vdXZ899yy  0J
^^	$||#""$LL$NN!!#		$	$	$s

AB%%B.c|jrtd|d|rB|@|j5|j}ddd|jjn|rt
j|z}|jj||st	|r.t
jz
}|j|st|jst|j}|jj|jjtjS#1swYxYw#|jjwxYwrO)
rFrPrrKr$releasetime	monotonicrQrrM_ForkingPicklerloads)r)rWrXresdeadlines     r,getz	Queue.getbs<<vdXZ899W_
)&&(
)II>>+g5;;&&ug6

&&)99G::g.#K&&(		!!###%$$S)))
)
)$##%sD;A0E;EE#cd|j|jjjz
Sr0)rr$_semlock
_get_valuer2s r,qsizezQueue.qsize|s$}}tyy11<<>>>r.c$|jSr0rMr2s r,emptyzQueue.empty::<r.cJ|jjjSr0)r$rd_is_zeror2s r,fullz
Queue.fullsyy!!**,,r.c$|jdSr;)rbr2s r,
get_nowaitzQueue.get_nowaitsxxr.c&|j|dSr;)rYr)rVs  r,
put_nowaitzQueue.put_nowaitsxxU##r.cLd|_|j}|rd|_|yy)NT)rFrG)r)closes  r,rtzQueue.closes&DKGr.cTtd|jr|jyy)NzQueue.join_thread())rrDr2s r,join_threadzQueue.join_threads%
#$r.c|tdd|_	|jjy#t$rYywxYw)NzQueue.cancel_join_thread()T)rrErDcancelAttributeErrorr2s r,cancel_join_threadzQueue.cancel_join_threads<
*+"	##%		s/	;;c0td|jjtjt
j|j|j|j|j|jj|jj|j|j|jf	d|_d|j _td|j j%td|j&sJt)|j t
j*t-j.|j gd|_t)|t
j2|j|jgd	|_y)
NzQueue._start_thread()QueueFeederThread)targetargsnameTzdoing self._thread.start()z... done self._thread.start())exitpriority
)rrBclearr>Threadr_feedr<rIr"rrtrr%_on_queue_feeder_errorr$rCdaemonstartrEr
_finalize_joinweakrefrefrD_finalize_closerGr2s r,rRzQueue._start_threads#
%&	
 '';;,,0@0@++t||114<<3E3E$$d&A&A))%

#
*+
-.""'e22T\\*+ D%''
\\4>>*r.cztd|}||jtdytdy)Nzjoining queue threadz... queue thread joinedz... queue thread already dead)rjoin)twrthreads  r,rzQueue._finalize_joins3
$%KKM+,12r.ctd|5|jt|jdddy#1swYyxYw)Nztelling queue thread to quit)rrS	_sentinelrT)buffernotemptys  r,rzQueue._finalize_closes9
,-
	MM)$OO			s	&=Ac	td|j}	|j}
|j}|j}t
}
tjdk7r|j}|j}nd}		|		|s||
		|}||
urtd||ytj|}|	||n|	||]#|
wxYw#wxYw#t$rYnwxYwno#t$rc}|r#t|ddtjk(rYd}~ytrt!d|Yd}~y|j||Yd}~nd}~wwxYw)Nz$starting thread to feed data to piperz%feeder thread got sentinel -- exitingerrnorzerror in queue thread: %s)rrQr[waitpopleftrr r!r^dumps
IndexError	ExceptiongetattrrEPIPErr)rrrH	writelockreader_closewriter_closeignore_epipeonerror	queue_semnacquirenreleasenwaitbpopleftsentinelwacquirewreleaserVes                  r,rzQueue._feedsh	45####

>><<7" ((H ((HH-
$
!J&j(?!"IJ(N(N".33C8#+&sO$J+ *3 (
#J&!)
!
$GAw$:ekk$I
<4a8%%'AsOO#
$;sx2D:	C)D%D1'DC5!D)	C22D5	C>>D	D

DD

D	E= E8?E8E88E=c.	ddl}|jy)Nr)	traceback	print_exc)rrVrs   r,rzQueue._on_queue_feeder_errors		r.r)FTN)__name__
__module____qualname__r-r3r7r'r&rYrbrfrirmrorrrtrvrzrRstaticmethodrrrrclassmethodtypesGenericAlias__class_getitem__r.r,rr#s9(A

%
'
$*4? -$B33<$<$|$E$6$67r.rc4eZdZddZdZdZd	dZdZdZy)
rctj||||jd|_|j	|_y)N)r+r)rr-	Semaphore_unfinished_tasksr?_condr(s   r,r-zJoinableQueue.__init__*s2
tW#.!$q!1]]_
r.c^tj||j|jfzSr0)rr3rrr2s r,r3zJoinableQueue.__getstate__/s'!!$'4::t7M7M*NNNr.cZtj||dd|dd\|_|_y)N)rr7rrr5s  r,r7zJoinableQueue.__setstate__2s-
4s,-223Z*
D*r.Nc|jrtd|d|jj||st|j
5|j5|j|j|jj||jj|j
jddddddy#1swYxYw#1swYyxYwrO)rFrPr$rQrr<rrCrRrBrSrr[rTrUs    r,rYzJoinableQueue.put6s<<vdXZ899yy  0J
^^	$TZZ	$||#""$LL$""**,NN!!#	$	$	$	$	$	$s%

C A,CC C	C  C)c|j5|jjdstd|jjjr|jj
dddy#1swYyxYw)NFz!task_done() called too many times)rrrQrPrdrl
notify_allr2s r,	task_donezJoinableQueue.task_doneCsf
ZZ	())11%8 !DEE%%..779

%%'		(	(	(sA%A;;Bc|j5|jjjs|jj	dddy#1swYyxYwr0)rrrdrlrr2s r,rzJoinableQueue.joinJsD
ZZ	"))22;;=

!	"	"	"s?AArr)	rrrr-r3r7rYrrrr.r,rr(s!%
O8$("r.rcZeZdZdZdZdZdZdZdZdZ	e
ejZ
y)	rc
tjd\|_|_|j	|_|jj|_tjdk(rd|_
y|j	|_
y)NFrr)r	rrrrrrLrMr r!r")r)r+s  r,r-zSimpleQueue.__init__UsW%/__E%B"dlhhj\\&&
<<7"DK((*DKr.cl|jj|jjyr0)rrtrr2s r,rtzSimpleQueue.close^s"r.c$|jSr0rhr2s r,rizSimpleQueue.emptybrjr.ctj||j|j|j|j
fSr0)r
r1rrrr"r2s r,r3zSimpleQueue.__getstate__es/%dllDKKEEr.cp|\|_|_|_|_|jj|_yr0)rrrr"rLrMr5s  r,r7zSimpleQueue.__setstate__is)AF>t|T[$+\\&&
r.c|j5|jj}dddtj	S#1swYxYwr0)rrrJr^r_)r)r`s  r,rbzSimpleQueue.getmsC
[[	,,,))+C	,$$S))	,	,sAActj|}|j|jj	|y|j5|jj	|dddy#1swYyxYwr0)r^rr"rrHrqs  r,rYzSimpleQueue.putss\##C(;;LL##C(
-'',
-
-
-s
A//A8N)rrrr-rtrir3r7rbrYrrrrrr.r,rrSs9% F'*-$E$6$67r.r)__all__r rr>r@r\rrrqueuerr_multiprocessingr	r
	reductionForkingPicklerr^utilrrr
rrobjectrrrrrr.r,<module>rsx4
	##22HHx8Fx8v
H	%"E%"V*8&*8r.