AlkantarClanX12

Your IP : 18.191.200.114


Current Path : /opt/alt/python35/lib64/python3.5/multiprocessing/dummy/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/multiprocessing/dummy/__pycache__/__init__.cpython-35.pyc



��YfP�@s�dddddddddd	d
ddd
ddgZddlZddlZddlZddlZddlmZddlmZmZm	Z	m
Z
ddlmZmZm
Z
ddlmZGdd�dej�ZeZejZej�e�_dd�Zdd�ZGdd�de�ZeZeZddd�ZGd d!�d!e�Zd"d�Zd#d$�Z ddfd%d�Z!eZ"dS)&�Process�current_process�active_children�freeze_support�Lock�RLock�	Semaphore�BoundedSemaphore�	Condition�Event�Barrier�Queue�Manager�Pipe�Pool�
JoinableQueue�N�)r)rrrr)r
r	r)rc@sIeZdZdddfidd�Zdd�Zedd��ZdS)�DummyProcessNcCsPtjj||||||�d|_tj�|_d|_t�|_	dS)NF)
�	threading�Thread�__init__Z_pid�weakref�WeakKeyDictionary�	_children�
_start_calledr�_parent)�self�group�target�name�args�kwargs�r"�C/opt/alt/python35/lib64/python3.5/multiprocessing/dummy/__init__.pyr$s
		zDummyProcess.__init__cCsW|jt�kst�d|_t|jd�rCd|jj|<tjj|�dS)NTr)	rr�AssertionErrorr�hasattrrrr�start)rr"r"r#r&+s
	zDummyProcess.startcCs"|jr|j�rdSdSdS)Nr)r�is_alive)rr"r"r#�exitcode2szDummyProcess.exitcode)�__name__�
__module__�__qualname__rr&�propertyr(r"r"r"r#r"srcCsIt�j}x0t|�D]"}|j�s|j|d�qWt|�S)N)rr�listr'�pop)Zchildren�pr"r"r#rAs
cCsdS)Nr"r"r"r"r#rHsc@s(eZdZdd�Zdd�ZdS)�	NamespacecKs|jj|�dS)N)�__dict__�update)r�kwdsr"r"r#rPszNamespace.__init__cCst|jj��}g}x:|D]2\}}|jd�s"|jd||f�q"W|j�d|jjdj|�fS)N�_z%s=%rz%s(%s)z, )	r-r1�items�
startswith�append�sort�	__class__r)�join)rr5Ztempr�valuer"r"r#�__repr__Rs
zNamespace.__repr__N)r)r*r+rr<r"r"r"r#r0Osr0TcCstj||�S)N)�array)�typecodeZsequence�lockr"r"r#�Array^sr@c@sReZdZddd�Zdd�Zdd�Zeee�Zdd	�Zd
S)�ValueTcCs||_||_dS)N)�	_typecode�_value)rr>r;r?r"r"r#rbs	zValue.__init__cCs|jS)N)rC)rr"r"r#�_getesz
Value._getcCs
||_dS)N)rC)rr;r"r"r#�_setgsz
Value._setcCs dt|�j|j|jfS)Nz<%s(%r, %r)>)�typer)rBrC)rr"r"r#r<jszValue.__repr__N)	r)r*r+rrDrEr,r;r<r"r"r"r#rAas
rAcCstjtS)N)�sys�modulesr)r"r"r"r#r
mscCsdS)Nr"r"r"r"r#�shutdownpsrIcCs ddlm}||||�S)N�)�
ThreadPool)ZpoolrK)Z	processesZinitializerZinitargsrKr"r"r#rss)#�__all__rrGrr=Z
connectionrrrrrr
r	rZqueuerrrrZcurrent_threadrrrrr�objectr0�dictr-r@rAr
rIrrr"r"r"r#�<module>s2"