Your IP : 13.59.54.188


Current Path : /opt/alt/python34/lib64/python3.4/multiprocessing/dummy/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/multiprocessing/dummy/__pycache__/connection.cpython-34.pyo

�
e fT�@ssdddgZddlmZdgZGdd�de�Zdd�Zdd	d�ZGd
d�de�ZdS)�Client�Listener�Pipe�)�QueueNc@sgeZdZddddd�Zdd�Zdd�Zed	d
��Zdd�Zd
d�Z	dS)rN�cCst|�|_dS)N)r�_backlog_queue)�self�addressZfamilyZbacklog�r
�E/opt/alt/python34/lib64/python3.4/multiprocessing/dummy/connection.py�__init__szListener.__init__cCst|jj��S)N)�
Connectionr�get)rr
r
r�acceptszListener.acceptcCs
d|_dS)N)r)rr
r
r�closeszListener.closecCs|jS)N)r)rr
r
r�<lambda>szListener.<lambda>cCs|S)Nr
)rr
r
r�	__enter__szListener.__enter__cCs|j�dS)N)r)r�exc_type�	exc_value�exc_tbr
r
r�__exit__"szListener.__exit__)
�__name__�
__module__�__qualname__rrr�propertyr	rrr
r
r
rrscCs3t�t�}}|j||f�t||�S)N)r�putr
)r	�_in�_outr
r
rr&sTcCs/t�t�}}t||�t||�fS)N)rr
)Zduplex�a�br
r
rr,sc@sOeZdZdd�Zddd�Zdd�Zdd	�Zd
d�ZdS)
r
cCs<||_||_|j|_|_|j|_|_dS)N)rrr�sendZ
send_bytesrZrecvZ
recv_bytes)rrrr
r
rr3s		zConnection.__init__gcCso|jj�dkrdS|dkr)dS|jjj�|jjj|�|jjj�|jj�dkS)NrTgF)rZqsizeZ	not_empty�acquire�wait�release)rZtimeoutr
r
r�poll9szConnection.pollcCsdS)Nr
)rr
r
rrCszConnection.closecCs|S)Nr
)rr
r
rrFszConnection.__enter__cCs|j�dS)N)r)rrrrr
r
rrIszConnection.__exit__N)rrrrr$rrrr
r
r
rr
1s

r
)	�__all__ZqueuerZfamilies�objectrrrr
r
r
r
r�<module>
s	

?>