AlkantarClanX12

Your IP : 18.118.154.237


Current Path : /opt/alt/python310/lib64/python3.10/multiprocessing/dummy/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/multiprocessing/dummy/__pycache__/__init__.cpython-310.pyc

o

6��f��@s�gd�ZddlZddlZddlZddlZddlmZddlmZmZm	Z	m
Z
ddlmZmZm
Z
ddlmZGdd	�d	ej�ZeZejZe��e�_d
d�Zdd
�ZGdd�de�ZeZeZddd�ZGdd�de�Zdd�Zdd�Z ddd�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@s4eZdZddddifdd�Zdd�Zedd��ZdS)	�DummyProcessN�cCs8tj�||||||�d|_t��|_d|_t�|_	dS)NF)
�	threading�Thread�__init__Z_pid�weakref�WeakKeyDictionary�	_children�
_start_calledr�_parent)�self�group�target�name�args�kwargsrr�E/opt/alt/python310/lib64/python3.10/multiprocessing/dummy/__init__.pyr$s

zDummyProcess.__init__cCsN|jt�urtd�|jt����d|_t|jd�rd|jj|<tj�	|�dS)Nz,Parent is {0!r} but current_process is {1!r}Tr)
rr�RuntimeError�formatr�hasattrrrr�start�rrrr#r'+s��zDummyProcess.startcCs|jr	|��s	dSdS)Nr)r�is_aliver(rrr#�exitcode5szDummyProcess.exitcode)�__name__�
__module__�__qualname__rr'�propertyr*rrrr#r"s

rcCs2t�j}t|�D]}|��s|�|d�qt|�S�N)rr�listr)�pop)�children�prrr#rDs�rcC�dSr/rrrrr#rK�rc@seZdZdd�Zdd�ZdS)�	NamespacecKs|j�|�dSr/)�__dict__�update)r�kwdsrrr#rSszNamespace.__init__cCsZt|j���}g}|D]\}}|�d�s|�d||f�q|��d|jjd�|�fS)N�_z%s=%rz%s(%s)z, )	r0r7�items�
startswith�append�sort�	__class__r+�join)rr;Ztempr �valuerrr#�__repr__Us
�zNamespace.__repr__N)r+r,r-rrBrrrr#r6Rsr6TcCst�||�Sr/)�array)�typecodeZsequence�lockrrr#�ArrayasrFc@s8eZdZd
dd�Zedd��Zejdd��Zdd�Zd	S)�ValueTcCs||_||_dSr/)�	_typecode�_value)rrDrArErrr#res
zValue.__init__cCs|jSr/�rIr(rrr#rAiszValue.valuecCs
||_dSr/rJ)rrArrr#rAms
cCsdt|�j|j|jfS)Nz<%s(%r, %r)>)�typer+rHrIr(rrr#rBqszValue.__repr__N�T)r+r,r-rr.rA�setterrBrrrr#rGds


rGcCs
tjtSr/)�sys�modulesr+rrrr#r
ts
r
cCr4r/rrrrr#�shutdownwr5rPrcCsddlm}||||�S)N�)�
ThreadPool)ZpoolrR)Z	processesZinitializerZinitargsrRrrr#rzsrrL)NNr)#�__all__rrNrrCZ
connectionrrrrrr
r	r�queuerrrrZcurrent_threadrrrrr�objectr6�dictr0rFrGr
rPrrrrrr#�<module>s0