Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/multiprocessing/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/multiprocessing/__pycache__/managers.cpython-37.opt-2.pyc

B

YI~d��@s�ddddgZddlZddlZddlZddlZddlZddlmZddlm	Z	dd	l
mZmZm
Z
dd
lmZddlmZddlmZdd
lmZdd�Ze�eje�dd�dD�Zedek	r�dd�ZxeD]Ze�ee�q�WGdd�de�Zdifdd�Zdd�ZGdd�de�Zdd�Zdd �ZGd!d"�d"e�Z Gd#d$�d$e�Z!e	j"e	j#fe	j$e	j%fd%�Z&Gd&d�de�Z'Gd'd(�d(e(�Z)Gd)d�de�Z*d*d+�Z+ifd,d-�Z,ddd/d0�Z-Gd1d2�d2e�Z.Gd3d4�d4e�Z/ded5d6�Z0Gd7d8�d8e*�Z1Gd9d:�d:e*�Z2Gd;d<�d<e2�Z3Gd=d>�d>e*�Z4Gd?d@�d@e*�Z5GdAdB�dBe*�Z6GdCdD�dDe*�Z7e,dEdF�Z8GdGdH�dHe8�Z9e,dIdJ�Z:dKdLie:_;e,dMdN�Z<e,dOdP�Z=dQdQdQdLdLdR�e=_;GdSdO�dOe=�Z>GdTd�de'�Z?e?�dUej@�e?�dVej@�e?�dWejAe4�e?�dXejBe2�e?�dYejCe2�e?�dZejDe2�e?�d[ejEe2�e?�d\ejFe3�e?�d]ejGe5�e?�d^ejHe>�e?�d_ee9�e?�d`eIe:�e?�d4e/e7�e?�d6e0e<�e?�d2e.e6�e?jdLe1dadb�e?jdQdadc�dS)f�BaseManager�SyncManager�	BaseProxy�Token�N)�
format_exc�)�
connection)�	reduction�get_spawning_popen�ProcessError)�pool)�process)�util)�get_contextcCstj|j|��ffS)N)�array�typecode�tobytes)�a�r�=/opt/alt/python37/lib64/python3.7/multiprocessing/managers.py�reduce_array$srcCsg|]}tti|����qSr)�type�getattr)�.0�namerrr�
<listcomp>(sr)�items�keys�valuescCstt|�ffS)N)�list)�objrrr�rebuild_as_list*sr!c@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)r)�typeid�address�idcCs||||_|_|_dS)N)r"r#r$)�selfr"r#r$rrr�__init__9szToken.__init__cCs|j|j|jfS)N)r"r#r$)r%rrr�__getstate__<szToken.__getstate__cCs|\|_|_|_dS)N)r"r#r$)r%�staterrr�__setstate__?szToken.__setstate__cCsd|jj|j|j|jfS)Nz %s(typeid=%r, address=%r, id=%r))�	__class__�__name__r"r#r$)r%rrr�__repr__BszToken.__repr__N)r+�
__module__�__qualname__�	__slots__r&r'r)r,rrrrr3s
rcCs8|�||||f�|��\}}|dkr*|St||��dS)Nz#RETURN)�send�recv�convert_to_error)�cr$�
methodname�args�kwds�kind�resultrrr�dispatchJs
r9cCsd|dkr|S|dkrRt|t�s4td�||t|����|dkrHtd|�St|�Sntd�|��SdS)Nz#ERROR)z
#TRACEBACKz#UNSERIALIZABLEz.Result {0!r} (kind '{1}') type is {2}, not strz#UNSERIALIZABLEzUnserializable message: %s
zUnrecognized message type {!r})�
isinstance�str�	TypeError�formatr�RemoteError�
ValueError)r7r8rrrr2Ts

r2c@seZdZdd�ZdS)r>cCsdt|jd�dS)NzM
---------------------------------------------------------------------------
rzK---------------------------------------------------------------------------)r;r5)r%rrr�__str__dszRemoteError.__str__N)r+r-r.r@rrrrr>csr>cCs6g}x,t|�D] }t||�}t|�r|�|�qW|S)N)�dirr�callable�append)r �tempr�funcrrr�all_methodsks
rFcCsdd�t|�D�S)NcSsg|]}|ddkr|�qS)r�_r)rrrrrrzsz"public_methods.<locals>.<listcomp>)rF)r rrr�public_methodsvsrHc	@s�eZdZddddddddd	g	Zd
d�Zdd
�Zdd�Zdd�Zdd�Zdd�Z	dd�Z
dd�Ze
ee	d�Zdd�Z
dd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zd-S).�Server�shutdown�create�accept_connection�get_methods�
debug_info�number_of_objects�dummy�incref�decrefcCsxt|t�std�|t|����||_t�|�|_t	|\}}||dd�|_
|j
j|_ddi|_i|_
i|_t��|_dS)Nz&Authkey {0!r} is type {1!s}, not bytes�)r#Zbacklog�0)Nr)r:�bytesr<r=r�registryr
�AuthenticationString�authkey�listener_client�listenerr#�	id_to_obj�id_to_refcount�id_to_local_proxy_obj�	threading�Lock�mutex)r%rVr#rX�
serializer�Listener�Clientrrrr&�s


zServer.__init__c	Cs�t��|_|t��_zZtj|jd�}d|_|�	�y x|j�
�sN|j�d�q6WWntt
fk
rjYnXWdtjtjkr�t�d�tjt_tjt_t�d�XdS)N)�targetTrzresetting stdout, stderrr)r^�Event�
stop_eventr
�current_process�_manager_server�Thread�accepter�daemon�start�is_set�wait�KeyboardInterrupt�
SystemExit�sys�stdout�
__stdout__r�debug�
__stderr__�stderr�exit)r%rjrrr�
serve_forever�s 



zServer.serve_forevercCsPxJy|j��}Wntk
r&wYnXtj|j|fd�}d|_|��qWdS)N)rdr5T)rZZaccept�OSErrorr^ri�handle_requestrkrl)r%r3�trrrrj�szServer.acceptercCs4d}}}y>t�||j�t�||j�|��}|\}}}}t||�}Wntk
rhdt�f}	Yn>Xy||f|�|�}Wntk
r�dt�f}	Yn
Xd|f}	y|�|	�Wnrtk
�r&}
zRy|�dt�f�Wntk
r�YnXt	�
d|	�t	�
d|�t	�
d|
�Wdd}
~
XYnX|��dS)Nz
#TRACEBACKz#RETURNzFailure to send message: %rz ... request was %rz ... exception was %r)rZdeliver_challengerXZanswer_challenger1r�	Exceptionrr0r�info�close)r%r3�funcnamer8�request�ignorer5r6rE�msg�errrrz�s2zServer.handle_requestc
Cs�t�dt��j�|j}|j}|j}�x�|j�	��s�yBd}}|�}|\}}}	}
y||\}}}Wn^t
k
r�}
z@y|j|\}}}Wn&t
k
r�}z|
�Wdd}~XYnXWdd}
~
XYnX||kr�td|t
|�|f��t||�}y||	|
�}Wn,tk
�r&}zd|f}Wdd}~XYnPX|�o8|�|d�}|�rn|�|||�\}}t||j|�}d||ff}nd|f}Wn�tk
�r�|dk�r�dt�f}nNy,|j|}|||||f|	�|
�}d|f}Wn tk
�r�dt�f}YnXYnPtk
�r"t�dt��j�t�d�Yn tk
�r@dt�f}YnXyDy||�Wn2tk
�r�}z|d	t�f�Wdd}~XYnXWq(tk
�r�}z@t�d
t��j�t�d|�t�d|�|��t�d
�Wdd}~XYq(Xq(WdS)Nz$starting server thread to service %rz+method %r of %r object is not in exposed=%rz#ERRORz#PROXYz#RETURNz
#TRACEBACKz$got EOF -- exiting thread serving %rrz#UNSERIALIZABLEzexception in thread serving %rz ... message was %rz ... exception was %rr)rrtr^�current_threadrr1r0r[rfrm�KeyErrorr]�AttributeErrorrrr|�getrKrr#r�fallback_mapping�EOFErrorrqrwr}r~)r%�connr1r0r[r4r r��identr5r6�exposed�	gettypeid�keZ	second_keZfunctionZresr�r�r"ZridentZrexposed�tokenZ
fallback_funcr8rrr�serve_client�sx(


$zServer.serve_clientcCs|S)Nr)r%r�r�r rrr�fallback_getvalue,szServer.fallback_getvaluecCst|�S)N)r;)r%r�r�r rrr�fallback_str/szServer.fallback_strcCst|�S)N)�repr)r%r�r�r rrr�
fallback_repr2szServer.fallback_repr)r@r,z	#GETVALUEcCsdS)Nr)r%r3rrrrP;szServer.dummyc
Cs||j�lg}t|j���}|��xD|D]<}|dkr(|�d||j|t|j|d�dd�f�q(Wd�|�SQRXdS)NrTz  %s:       refcount=%s
    %sr�K�
)	r`rr\r�sortrCr;r[�join)r%r3r8rr�rrrrN>s

$zServer.debug_infocCs
t|j�S)N)�lenr\)r%r3rrrrONszServer.number_of_objectscCsLz:yt�d�|�d�Wnddl}|��YnXWd|j��XdS)Nz!manager received shutdown message)z#RETURNNr)rrtr0�	traceback�	print_excrf�set)r%r3r�rrrrJUs
zServer.shutdownc	Os�t|�dkr|^}}}}nz|s(td��nld|krDtdt|�d��|�d�}t|�dkrf|^}}}n.d|kr�tdt|�d��|�d�}|^}}t|�}|j��|j|\}}}}|dkr�|s�t|�dkr�td��|d	}	n
|||�}	|dkr�t|	�}|dk	�r4t|t	��s$td
�
|t|����t|�t|�}dt
|	�}
t�d||
�|	t|�|f|j|
<|
|jk�rxd	|j|
<WdQRX|�||
�|
t|�fS)
N�z8descriptor 'create' of 'Server' object needs an argumentr"z7create expected at least 2 positional arguments, got %dr�r3z4Without callable, must have one non-keyword argumentrz,Method_to_typeid {0!r}: type {1!s}, not dictz%xz&%r callable returned object with id %r)r�r<�pop�tupler`rVr?rHr:�dictr=rrr$rrtr�r[r\rQ)r5r6r%r3r"rBr��method_to_typeid�	proxytyper r�rrrrKbsN





z
Server.createcCst|j|jd�S)Nr)r�r[r$)r%r3r�rrrrM�szServer.get_methodscCs"|t��_|�d�|�|�dS)N)z#RETURNN)r^r�rr0r�)r%r3rrrrrL�s

zServer.accept_connectioncCs�|j��y|j|d7<Wnhtk
r�}zJ||jkrrd|j|<|j||j|<|j|\}}}t�d|�n|�Wdd}~XYnXWdQRXdS)Nrz&Server re-enabled tracking & INCREF %r)r`r\r�r]r[rrt)r%r3r�r�r r�r�rrrrQ�s

z
Server.increfc	Cs�||jkr$||jkr$t�d|�dS|j�Z|j|dkrXtd�||j||j|���|j|d8<|j|dkr�|j|=WdQRX||jkr�d|j|<t�d|�|j�|j|=WdQRXdS)NzServer DECREF skipping %rrz+Id {0!s} ({1!r}) has refcount {2:n}, not 1+r)NrNzdisposing of obj with id %r)r\r]rrtr`�AssertionErrorr=r[)r%r3r�rrrrR�s$




z
Server.decrefN)r+r-r.Zpublicr&rxrjrzr�r�r�r�r�rPrNrOrJrKrMrLrQrRrrrrrI�s,
"Q
8rIc@seZdZdgZdZdZdZdS)�State�valuerrr�N)r+r-r.r/�INITIAL�STARTED�SHUTDOWNrrrrr��sr�)�pickleZ	xmlrpclibc@s�eZdZiZeZd!dd�Zdd�Zdd�Zd"d
d�Z	e
d#dd
��Zdd�Zd$dd�Z
dd�Zdd�Zdd�Zdd�Zedd��Zedd��Ze
d%dd ��ZdS)&rNr�cCs\|dkrt��j}||_t�|�|_t�|_tj|j_	||_
t|\|_|_
|pTt�|_dS)N)r
rgrX�_addressrW�_authkeyr��_stater�r��_serializerrYZ	_Listener�_Clientr�_ctx)r%r#rXraZctxrrrr&�s

zBaseManager.__init__cCsf|jjtjkrP|jjtjkr&td��n*|jjtjkr>td��ntd�|jj���t|j	|j
|j|j�S)NzAlready started serverzManager has shut downzUnknown state {!r})
r�r�r�r�r�rr�r=rI�	_registryr�r�r�)r%rrr�
get_servers


zBaseManager.get_servercCs8t|j\}}||j|jd�}t|dd�tj|j_dS)N)rXrP)	rYr�r�r�r9r�r�r�r�)r%rbrcr�rrr�connectszBaseManager.connectrc	Cs4|jjtjkrP|jjtjkr&td��n*|jjtjkr>td��ntd�|jj���|dk	rht|�sht	d��t
jdd�\}}|jj
t|�j|j|j|j|j|||fd�|_d�d	d
�|jjD��}t|�jd||j_|j��|��|��|_|��tj|j_tj|t|�j|j|j|j|j|jfdd
�|_ dS)NzAlready started serverzManager has shut downzUnknown state {!r}zinitializer must be a callableF)Zduplex)rdr5�:css|]}t|�VqdS)N)r;)r�irrr�	<genexpr>1sz$BaseManager.start.<locals>.<genexpr>�-r)r5�exitpriority)!r�r�r�r�r�rr�r=rBr<rZPiper�ZProcessr�_run_serverr�r�r�r��_processr�Z	_identityr+rrlr~r1r�Finalize�_finalize_managerr�rJ)r%�initializer�initargs�reader�writerr�rrrrls4






zBaseManager.startc	CsN|dk	r||�|�||||�}|�|j�|��t�d|j�|��dS)Nzmanager serving at %r)�_Serverr0r#r~rr}rx)	�clsrVr#rXrar�r�r��serverrrrr�CszBaseManager._run_servercOs`|^}}}t|�}|j|j|jd�}zt|dd|f||�\}}Wd|��Xt||j|�|fS)N)rXrK)r�r�r�r�r9r~r)r5r6r%r"r�r$r�rrr�_createWs

zBaseManager._createcCs*|jdk	r&|j�|�|j��s&d|_dS)N)r�r��is_alive)r%�timeoutrrrr�fs

zBaseManager.joincCs.|j|j|jd�}zt|dd�S|��XdS)N)rXrN)r�r�r�r9r~)r%r�rrr�_debug_infooszBaseManager._debug_infocCs.|j|j|jd�}zt|dd�S|��XdS)N)rXrO)r�r�r�r9r~)r%r�rrr�_number_of_objectsyszBaseManager._number_of_objectscCsj|jjtjkr|��|jjtjkrf|jjtjkr<td��n*|jjtjkrTtd��ntd�|jj���|S)NzUnable to start serverzManager has shut downzUnknown state {!r})	r�r�r�r�rlr�rr�r=)r%rrr�	__enter__�s

zBaseManager.__enter__cCs|��dS)N)rJ)r%�exc_type�exc_val�exc_tbrrr�__exit__�szBaseManager.__exit__cCs�|��r�t�d�y,|||d�}zt|dd�Wd|��XWntk
rRYnX|jdd�|��r�t�d�t|d�r�t�d�|��|jd	d�|��r�t�d
�t	j
|_ytj
|=Wntk
r�YnXdS)Nz#sending shutdown message to manager)rXrJg�?)r�zmanager still alive�	terminatez'trying to `terminate()` manager processg�������?z#manager still alive after terminate)r�rr}r9r~r|r��hasattrr�r�r�r�r�_address_to_localr�)r
r#rXr(r�r�rrrr��s.




zBaseManager._finalize_managercCs|jS)N)r�)r%rrrr#�szBaseManager.addressTc
s�d|jkr|j��|_�dkr"t�|p0t�dd�}|p@t�dd�}|r`xt|���D]\}}qTW|||�f|j�<|r���fdd�}	�|	_t|�|	�dS)Nr��	_exposed_�_method_to_typeid_cs`t�d��|j�f|�|�\}}�||j||j|d�}|j|j|jd�}t|dd|jf�|S)Nz)requesting creation of a shared %r object)�managerrXr�)rXrR)	rrtr�r�r�r�r#r9r$)r%r5r6r�Zexp�proxyr�)r�r"rrrD�sz"BaseManager.register.<locals>.temp)	�__dict__r��copy�	AutoProxyrrrr+�setattr)
r�r"rBr�r�r��
create_method�keyr�rDr)r�r"r�register�s

zBaseManager.register)NNr�N)Nr)Nr)N)NNNNT)r+r-r.r�rIr�r&r�r�rl�classmethodr�r�r�r�r�r�r��staticmethodr��propertyr#r�rrrrr�s(
	
+
	


 c@seZdZdd�Zdd�ZdS)�ProcessLocalSetcCst�|dd��dS)NcSs|��S)N)�clear)r rrr�<lambda>��z*ProcessLocalSet.__init__.<locals>.<lambda>)r�register_after_fork)r%rrrr&�szProcessLocalSet.__init__cCst|�dfS)Nr)r)r%rrr�
__reduce__�szProcessLocalSet.__reduce__N)r+r-r.r&r�rrrrr��sr�c@s|eZdZiZe��Zddd�Zdd�Zdifd	d
�Z	dd�Z
d
d�Zedd��Z
dd�Zdd�Zdd�Zdd�Zdd�ZdS)rNTFc		Cs�tj�8tj�|jd�}|dkr:t��t�f}|tj|j<WdQRX|d|_|d|_	||_
|j
j|_||_
||_t|d|_||_|dk	r�t�|�|_n"|j
dk	r�|j
j|_nt��j|_|r�|��t�|tj�dS)Nrr)r�_mutexr�r�r#rZForkAwareLocalr��_tls�_idset�_tokenr$�_id�_managerr�rYr��_owned_by_managerr
rWr�rgrX�_increfr��_after_fork)	r%r�rar�rXr�rQ�
manager_ownedZ	tls_idsetrrrr&�s*



zBaseProxy.__init__cCsdt�d�t��j}t��jdkr4|dt��j7}|j|jj	|j
d�}t|dd|f�||j_
dS)Nzmaking connection to managerZ
MainThread�|)rXrL)rrtr
rgrr^r�r�r�r#r�r9r�r)r%rr�rrr�_connects

zBaseProxy._connectrcCs�y|jj}Wn6tk
rBt�dt��j�|��|jj}YnX|�	|j
|||f�|��\}}|dkrp|S|dkr�|\}}|jj
|jd}	|jj|_|	||j|j|j|d�}
|j|j|jd�}t|dd|jf�|
St||��dS)Nz#thread %r does not own a connectionz#RETURNz#PROXY���)r�rXr�)rXrR)r�rr�rrtr^r�rr�r0r�r1r�r�r"r�r#r�r�r�r9r$r2)r%r4r5r6r�r7r8r�r�r�r�rrr�_callmethod&s,

zBaseProxy._callmethodcCs
|�d�S)Nz	#GETVALUE)r�)r%rrr�	_getvalueDszBaseProxy._getvaluec	Cs�|jrt�d|jj�dS|j|jj|jd�}t|dd|j	f�t�d|jj�|j
�|j	�|joj|jj
}tj|tj|j|j||j|j
|jfdd�|_dS)Nz%owned_by_manager skipped INCREF of %r)rXrQz	INCREF %r�
)r5r�)r�rrtr�r$r�r#r�r9r�r��addr�r�r�r�_decrefr�Z_close)r%r�r(rrrr�Js
zBaseProxy._increfc
Cs�|�|j�|dks |jtjkr�y2t�d|j�||j|d�}t|dd|jf�Wq�t	k
r�}zt�d|�Wdd}~XYq�Xnt�d|j�|s�t
|d�r�t�dt��j
�|j��|`dS)Nz	DECREF %r)rXrRz... decref failed %sz%DECREF %r -- manager already shutdownrz-thread %r has no more proxies so closing conn)�discardr$r�r�r�rrtr#r9r|r�r^r�rrr~)r�rXr(ZtlsZidsetr�r�r�rrrr�^s 
zBaseProxy._decrefc
CsHd|_y|��Wn0tk
rB}zt�d|�Wdd}~XYnXdS)Nzincref failed: %s)r�r�r|rr})r%r�rrrr�ws
zBaseProxy._after_forkcCs^i}t�dk	r|j|d<t|dd�rB|j|d<tt|j|j|ffStt|�|j|j|ffSdS)NrX�_isautoFr�)	r
r�rr��RebuildProxyr�r�r�r)r%r6rrrr�s


zBaseProxy.__reduce__cCs|��S)N)r�)r%Zmemorrr�__deepcopy__�szBaseProxy.__deepcopy__cCsdt|�j|jjt|�fS)Nz<%s object, typeid %r at %#x>)rr+r�r"r$)r%rrrr,�szBaseProxy.__repr__cCs4y
|�d�Stk
r.t|�dd�dSXdS)Nr,r�z; '__str__()' failed>)r�r|r�)r%rrrr@�s
zBaseProxy.__str__)NNNTF)r+r-r.r�rZForkAwareThreadLockr�r&r�r�r�r�r�r�r�r�r�r,r@rrrrr�s
(	
cCs�tt��dd�}|rT|j|jkrTt�d|�d|d<|j|jkrT|j|j|j|j<|�	dd�optt��dd�}|||fd|i|��S)Nrhz*Rebuild a proxy owned by manager, token=%rTr�rQZ_inheritingF)
rr
rgr#rrtr$r]r[r�)rEr�rar6r�rQrrrr��sr�cCsrt|�}y|||fStk
r(YnXi}x|D]}td||f|�q4Wt|tf|�}||_||||f<|S)NzLdef %s(self, *args, **kwds):
        return self._callmethod(%r, args, kwds))r�r��execrrr�)rr��_cacheZdicZmeth�	ProxyTyperrr�
MakeProxyType�s
r�Tc
Cs�t|d}|dkrB||j|d�}zt|dd|f�}Wd|��X|dkrX|dk	rX|j}|dkrjt��j}td|j	|�}||||||d�}	d|	_
|	S)Nr)rXrMz
AutoProxy[%s])r�rXrQT)rYr#r9r~r�r
rgrXr�r"r�)
r�rar�rXr�rQr�r�r�r�rrrr��s


r�c@seZdZdd�Zdd�ZdS)�	NamespacecKs|j�|�dS)N)r��update)r%r6rrrr&�szNamespace.__init__cCs^t|j���}g}x,|D]$\}}|�d�s|�d||f�qW|��d|jjd�|�fS)NrGz%s=%rz%s(%s)z, )	rr�r�
startswithrCr�r*r+r�)r%rrDrr�rrrr,�s
zNamespace.__repr__N)r+r-r.r&r,rrrrr��sr�c@s8eZdZddd�Zdd�Zdd�Zdd	�Zeee�Zd
S)�ValueTcCs||_||_dS)N)�	_typecode�_value)r%rr��lockrrrr&�szValue.__init__cCs|jS)N)r)r%rrrr��sz	Value.getcCs
||_dS)N)r)r%r�rrrr��sz	Value.setcCsdt|�j|j|jfS)Nz
%s(%r, %r))rr+rr)r%rrrr,�szValue.__repr__N)T)	r+r-r.r&r�r�r,r�r�rrrrr�s

rcCst�||�S)N)r)rZsequencerrrr�Arraysrc@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�
IteratorProxy)�__next__r0�throwr~cCs|S)Nr)r%rrr�__iter__	szIteratorProxy.__iter__cGs|�d|�S)Nr)r�)r%r5rrrrszIteratorProxy.__next__cGs|�d|�S)Nr0)r�)r%r5rrrr0
szIteratorProxy.sendcGs|�d|�S)Nr	)r�)r%r5rrrr	szIteratorProxy.throwcGs|�d|�S)Nr~)r�)r%r5rrrr~szIteratorProxy.closeN)	r+r-r.r�r
rr0r	r~rrrrrsrc@s2eZdZdZddd�Zdd�Zdd	�Zd
d�ZdS)
�
AcquirerProxy)�acquire�releaseTNcCs"|dkr|fn||f}|�d|�S)Nr)r�)r%Zblockingr�r5rrrrszAcquirerProxy.acquirecCs
|�d�S)Nr
)r�)r%rrrr
szAcquirerProxy.releasecCs
|�d�S)Nr)r�)r%rrrr�szAcquirerProxy.__enter__cCs
|�d�S)Nr
)r�)r%r�r�r�rrrr�szAcquirerProxy.__exit__)TN)r+r-r.r�rr
r�r�rrrrrs

rc@s6eZdZdZddd�Zd
dd�Zdd	�Zdd
d�ZdS)�ConditionProxy)rr
rn�notify�
notify_allNcCs|�d|f�S)Nrn)r�)r%r�rrrrn$szConditionProxy.waitrcCs|�d|f�S)Nr)r�)r%�nrrrr&szConditionProxy.notifycCs
|�d�S)Nr)r�)r%rrrr(szConditionProxy.notify_allcCsh|�}|r|S|dk	r$t��|}nd}d}x6|sb|dk	rP|t��}|dkrPP|�|�|�}q.W|S)Nr)�timeZ	monotonicrn)r%Z	predicater�r8ZendtimeZwaittimerrr�wait_for*s

zConditionProxy.wait_for)N)r)N)r+r-r.r�rnrrrrrrrr"s


rc@s2eZdZdZdd�Zdd�Zdd�Zdd	d
�ZdS)�
EventProxy)rmr�r�rncCs
|�d�S)Nrm)r�)r%rrrrm?szEventProxy.is_setcCs
|�d�S)Nr�)r�)r%rrrr�AszEventProxy.setcCs
|�d�S)Nr�)r�)r%rrrr�CszEventProxy.clearNcCs|�d|f�S)Nrn)r�)r%r�rrrrnEszEventProxy.wait)N)r+r-r.r�rmr�r�rnrrrrr=s
rc@sNeZdZdZddd�Zdd�Zdd�Zed	d
��Zedd��Z	ed
d��Z
dS)�BarrierProxy)�__getattribute__rn�abort�resetNcCs|�d|f�S)Nrn)r�)r%r�rrrrnKszBarrierProxy.waitcCs
|�d�S)Nr)r�)r%rrrrMszBarrierProxy.abortcCs
|�d�S)Nr)r�)r%rrrrOszBarrierProxy.resetcCs|�dd�S)Nr)�parties)r�)r%rrrrQszBarrierProxy.partiescCs|�dd�S)Nr)�	n_waiting)r�)r%rrrrTszBarrierProxy.n_waitingcCs|�dd�S)Nr)�broken)r�)r%rrrrWszBarrierProxy.broken)N)r+r-r.r�rnrrr�rrrrrrrrIs
rc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�NamespaceProxy)r�__setattr__�__delattr__cCs0|ddkrt�||�St�|d�}|d|f�S)NrrGr�r)�objectr)r%r��
callmethodrrr�__getattr__^szNamespaceProxy.__getattr__cCs4|ddkrt�|||�St�|d�}|d||f�S)NrrGr�r)rrr)r%r�r�r rrrrcszNamespaceProxy.__setattr__cCs0|ddkrt�||�St�|d�}|d|f�S)NrrGr�r)rrr)r%r�r rrrrhszNamespaceProxy.__delattr__N)r+r-r.r�r!rrrrrrr\src@s*eZdZdZdd�Zdd�Zeee�ZdS)�
ValueProxy)r�r�cCs
|�d�S)Nr�)r�)r%rrrr�qszValueProxy.getcCs|�d|f�S)Nr�)r�)r%r�rrrr�sszValueProxy.setN)r+r-r.r�r�r�r�r�rrrrr"osr"�
BaseListProxy)�__add__�__contains__�__delitem__�__getitem__�__len__�__mul__�__reversed__�__rmul__�__setitem__rC�count�extend�index�insertr��remove�reverser��__imul__c@seZdZdd�Zdd�ZdS)�	ListProxycCs|�d|f�|S)Nr.)r�)r%r�rrr�__iadd__szListProxy.__iadd__cCs|�d|f�|S)Nr3)r�)r%r�rrrr3�szListProxy.__imul__N)r+r-r.r5r3rrrrr4~sr4�	DictProxy)r%r&r'r
r(r,r�r�r�rrr��popitem�
setdefaultrrr
�Iterator�
ArrayProxy)r(r'r,�	PoolProxy)Zapply�apply_asyncr~�imap�imap_unorderedr��map�	map_async�starmap�
starmap_asyncr�ZAsyncResult)r<r@rBr=r>c@seZdZdd�Zdd�ZdS)r;cCs|S)Nr)r%rrrr��szPoolProxy.__enter__cCs|��dS)N)r�)r%r�r�r�rrrr��szPoolProxy.__exit__N)r+r-r.r�r�rrrrr;�sc@seZdZdS)rN)r+r-r.rrrrr�s	�QueueZ
JoinableQueuerer_�RLock�	Semaphore�BoundedSemaphore�	Condition�Barrier�Poolrr�F)r�r�)r�)NNNT)T)J�__all__rqr^rZqueuerr�r�r�contextr	r
rrr
rrrr�Z
view_typesrr!Z	view_typerrr9r2r|r>rFrHrIr�rbrcZXmlListenerZ	XmlClientrYrr�r�rr�r�r�r�rrrrrrrrr"r#r4r6r�r:Z
BasePoolProxyr;rrCrer_rDrErFrGrHrIr�rrrr�<module>s�


\
w
4


		





Hacked By AnonymousFox1.0, Coded By AnonymousFox