File "queues.cpython-37.opt-1.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python37/lib64/python3.7/multiprocessing/__pycache__/queues.cpython-37.opt-1.pyc
File size: 9.02 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit

B

 fC-@sdddgZddlZddlZddlZddlZddlZddlZddlZddlm	Z	m
Z
ddlZddlm
Z
ddlmZejjZdd	lmZmZmZmZmZGd
ddeZeZGdddeZGdddeZdS)
QueueSimpleQueue
JoinableQueueN)EmptyFull)
connection)context)debuginfoFinalizeregister_after_fork
is_exitingc@seZdZd*ddZddZddZdd	Zd+dd
Zd,ddZddZ	ddZ
ddZddZddZ
ddZddZddZd d!Zed"d#Zed$d%Zed&d'Zed(d)ZdS)-rrcCs|dkrddlm}||_tjdd\|_|_||_t	
|_tj
dkrTd|_n
||_|||_d|_|tj
dkrt|tjdS)Nrr)
SEM_VALUE_MAXF)duplexwin32)Zsynchronizer_maxsizerPipe_reader_writerLock_rlockosgetpid_opidsysplatform_wlockZBoundedSemaphore_sem
_ignore_epipe_after_forkr
r)selfmaxsizectxr$;/opt/alt/python37/lib64/python3.7/multiprocessing/queues.py__init__$s




zQueue.__init__cCs.t||j|j|j|j|j|j|j|j	fS)N)
r	assert_spawningrrrrrrrr)r!r$r$r%__getstate__9s
zQueue.__getstate__c	Cs0|\|_|_|_|_|_|_|_|_|dS)N)	rrrrrrrrr )r!stater$r$r%__setstate__>s$zQueue.__setstate__cCsbtdtt|_t|_d|_d|_	d|_
d|_d|_|j
j|_|jj|_|jj|_dS)NzQueue._after_fork()F)r
	threading	Conditionr	_notemptycollectionsdeque_buffer_thread_jointhread_joincancelled_closed_closer
send_bytes_send_bytesr
recv_bytes_recv_bytespoll_poll)r!r$r$r%r Cs


zQueue._after_forkTNc	CsP|j||st|j.|jdkr,||j||jWdQRXdS)N)	racquirerr-r1
_start_threadr0appendnotify)r!objblocktimeoutr$r$r%putPs
z	Queue.putc	Cs|r2|dkr2|j|}WdQRX|jnr|rBt|}|j||sTtzB|rv|t}||stn|st|}|jWd|jXt	
|S)N)rr9rreleasetimeZ	monotonicr<rr;_ForkingPicklerloads)r!rArBresZdeadliner$r$r%get[s&
z	Queue.getcCs|j|jjS)N)rr_semlockZ
_get_value)r!r$r$r%qsizesszQueue.qsizecCs
|S)N)r;)r!r$r$r%emptywszQueue.emptycCs|jjS)N)rrJ_is_zero)r!r$r$r%fullzsz
Queue.fullcCs
|dS)NF)rI)r!r$r$r%
get_nowait}szQueue.get_nowaitcCs||dS)NF)rC)r!r@r$r$r%
put_nowaitszQueue.put_nowaitcCs2d|_z|jWd|j}|r,d|_|XdS)NT)r4rcloser5)r!rQr$r$r%rQszQueue.closecCstd|jr|dS)NzQueue.join_thread())r
r2)r!r$r$r%join_threadszQueue.join_threadcCs6tdd|_y|jWntk
r0YnXdS)NzQueue.cancel_join_thread()T)r
r3r2ZcancelAttributeError)r!r$r$r%cancel_join_threadszQueue.cancel_join_threadc
Cstd|jtjtj|j|j|j|j	|j
j|j|j
|jfdd|_d|j_td|jtd|jst|jtjt|jgdd|_t|tj|j|jgd	d|_dS)
NzQueue._start_thread()ZQueueFeederThread)targetargsnameTzdoing self._thread.start()z... done self._thread.start())Zexitpriority
)r
r0clearr+ZThreadr_feedr-r7rrrQr_on_queue_feeder_errorrr1Zdaemonstartr3r_finalize_joinweakrefrefr2_finalize_closer5)r!r$r$r%r=s*





zQueue._start_threadcCs4td|}|dk	r(|tdntddS)Nzjoining queue threadz... queue thread joinedz... queue thread already dead)r
join)ZtwrZthreadr$r$r%r^s
zQueue._finalize_joinc	Cs.td||t|WdQRXdS)Nztelling queue thread to quit)r
r>	_sentinelr?)buffernotemptyr$r$r%ras
zQueue._finalize_closec
CsRtd|j}|j}	|j}
|j}t}tjdkr<|j}
|j}nd}
x
y|z|sX|
Wd|	Xybx\|}||krtd|dSt	|}|
dkr||qh|
z||Wd|XqhWWnt
k
rYnXWqDtk
rH}zJ|rt|ddt
jkrdStr&td|dS||||Wdd}~XYqDXqDWdS)Nz$starting thread to feed data to piperz%feeder thread got sentinel -- exitingerrnorzerror in queue thread: %s)r
r<rDwaitpopleftrcrrrFdumps
IndexError	ExceptiongetattrrfZEPIPErr)rdrer6Z	writelockrQZignore_epipeonerrorZ	queue_semZnacquireZnreleaseZnwaitZbpopleftsentinelZwacquireZwreleaser@er$r$r%r[sR





zQueue._feedcCsddl}|dS)z
        Private API hook called when feeding data in the background thread
        raises an exception.  For overriding by concurrent.futures.
        rN)	traceback	print_exc)ror@rpr$r$r%r\
szQueue._on_queue_feeder_error)r)TN)TN)__name__
__module____qualname__r&r(r*r rCrIrKrLrNrOrPrQrRrTr=staticmethodr^rar[r\r$r$r$r%r"s&



 
>c@s@eZdZdddZddZddZdd
dZdd
ZddZd	S)rrcCs*tj|||d|d|_||_dS)N)r#r)rr&Z	Semaphore_unfinished_tasksr,_cond)r!r"r#r$r$r%r& szJoinableQueue.__init__cCst||j|jfS)N)rr(rwrv)r!r$r$r%r(%szJoinableQueue.__getstate__cCs,t||dd|dd\|_|_dS)N)rr*rwrv)r!r)r$r$r%r*(szJoinableQueue.__setstate__TNc
Csl|j||st|jJ|j8|jdkr4||j||j	
|jWdQRXWdQRXdS)N)rr<rr-rwr1r=r0r>rvrDr?)r!r@rArBr$r$r%rC,s

zJoinableQueue.putc	Cs@|j0|jdstd|jjr2|jWdQRXdS)NFz!task_done() called too many times)rwrvr<
ValueErrorrJrMZ
notify_all)r!r$r$r%	task_done8s
zJoinableQueue.task_donec	Cs,|j|jjs|jWdQRXdS)N)rwrvrJrMrg)r!r$r$r%rb?szJoinableQueue.join)r)TN)	rrrsrtr&r(r*rCrzrbr$r$r$r%rs

c@s<eZdZddZddZddZddZd	d
ZddZd
S)rcCsHtjdd\|_|_||_|jj|_tj	dkr:d|_
n
||_
dS)NF)rr)rrrrrrr:r;rrr)r!r#r$r$r%r&Js


zSimpleQueue.__init__cCs
|S)N)r;)r!r$r$r%rLSszSimpleQueue.emptycCst||j|j|j|jfS)N)r	r'rrrr)r!r$r$r%r(Vs
zSimpleQueue.__getstate__cCs"|\|_|_|_|_|jj|_dS)N)rrrrr:r;)r!r)r$r$r%r*ZszSimpleQueue.__setstate__c	Cs&|j|j}WdQRXt|S)N)rrr8rFrG)r!rHr$r$r%rI^szSimpleQueue.getc	CsDt|}|jdkr"|j|n|j|j|WdQRXdS)N)rFrirrr6)r!r@r$r$r%rCds


zSimpleQueue.putN)	rrrsrtr&rLr(r*rIrCr$r$r$r%rHs	)__all__rrr+r.rEr_rfZqueuerrZ_multiprocessingrr	Z	reductionZForkingPicklerrFutilr
rrr
robjectrrcrrr$r$r$r%<module>
s$
s
*