403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/concurrent/futures/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/concurrent/futures/__pycache__/process.cpython-315.pyc
R
>lqj.�c�6�QsQs]PHs]QHGs]PHs]PHs]PH s]QH$G
s
]PH,s]PH0s]QH4Gs]PH<s]PH@s]QHDGs\O&2sP
rQQ2sQs\O0\2]s]=sQ	Q
\2sQQ2sQ
sQQ\2s QQ\2s!QQ\2s"QQ\
2s#Qs$Q$Qks%Q%Qks&Qs'QQ\OP2s)P
r*Pr+Qs,Qs-QQ\O\2s/Q s0Q!s1\0\1.s2Q"Q#\Of2s4P!)&a-	Implements ProcessPoolExecutor.

The following diagram and text describe the data-flow through the system:

|======================= In-process =====================|== Out-of-process ==|

+----------+     +----------+       +--------+     +-----------+    +---------+
|          |  => | Work Ids |       |        |     | Call Q    |    | Process |
|          |     +----------+       |        |     +-----------+    |  Pool   |
|          |     | ...      |       |        |     | ...       |    +---------+
|          |     | 6        |    => |        |  => | 5, call() | => |         |
|          |     | 7        |       |        |     | ...       |    |         |
| Process  |     | ...      |       | Local  |     +-----------+    | Process |
|  Pool    |     +----------+       | Worker |                      |  #1..n  |
| Executor |                        | Thread |                      |         |
|          |     +----------- +     |        |     +-----------+    |         |
|          | <=> | Work Items | <=> |        | <=  | Result Q  | <= |         |
|          |     +------------+     |        |     +-----------+    |         |
|          |     | 6: call()  |     |        |     | ...       |    |         |
|          |     |    future  |     |        |     | 4, result |    |         |
|          |     | ...        |     |        |     | 3, except |    |         |
+----------+     +------------+     +--------+     +-----------+    +---------+

Executor.submit() called:
- creates a uniquely numbered _WorkItem and adds it to the "Work Items" dict
- adds the id of the _WorkItem to the "Work Ids" queue

Local worker thread:
- reads work ids from the "Work Ids" queue and looks up the corresponding
  WorkItem from the "Work Items" dict: if the work item has been cancelled then
  it is simply removed from the dict, otherwise it is repackaged as a
  _CallItem and put in the "Call Q". New _CallItems are put in the "Call Q"
  until "Call Q" is full. NOTE: the size of the "Call Q" is kept small because
  calls placed in the "Call Q" can no longer be cancelled with Future.cancel().
- reads _ResultItems from "Result Q", updates the future stored in the
  "Work Items" dict and deletes the dict entry

Process #1..n:
- reads _CallItems from "Call Q", executes the calls, and puts the resulting
  _ResultItems in "Result Q"
z"Brian Quinlan (brian@sweetapp.com))�_base)�Queue)�partial)�format_exceptionc�:`�\sQs]DsnQsQsQsQsQsUs	P!)�
_ThreadWakeupc��P
Um[O2Um[O
P
Q5vUmUmP!)F)�duplex)�_closed�	threading�Lock�_lock�mp�Pipe�_reader�_writer��selfs&�/C:\Python315\\Lib\concurrent\futures\process.py�__init__�_ThreadWakeup.__init__Es.������^�^�%��
�%'�W�W�E�%:�"���d�l�c��UO9^tt^2UO%f<P	UmUOO2UOO2PPP2P!)%fhP!9h�T)rr	r�closerrs&rr�_ThreadWakeup.closeJsI���Z�Z�Z��<�<�<�#������"�"�$����"�"�$�	�Z�Z�Z�s�A.�;A.�.A?	�7A?	c���UO9^tt^2UO%fUOOQ2PPP2P!)%fhP!9h)r)rr	r�
send_bytesrs&r�wakeup�_ThreadWakeup.wakeupVs2��
�Z�Z�Z��<�<�<����'�'��,��Z�Z�Z�s�A�A�A	�A	c��UO%c[Q2gUOO2%cUOO	2J<P!)z!operation on closed _ThreadWakeup)r	�RuntimeErrorr�poll�
recv_bytesrs&r�clear�_ThreadWakeup.clear[s?���<�<�<��B�C�C��l�l���!�!��L�L�#�#�%�"r)r	rrr)
�__name__�
__module__�__qualname__�__firstlineno__rrrr#�__static_attributes__�__classdictcell__��
__classdict__s@rrrDs����;�

%�-�
&�&rrc��P	r[[O22oSFDvqUO	2J	SFDvq1UO2J	P!r)�_global_shutdown�list�_threads_wakeups�itemsr�join)r1�_�
thread_wakeup�ts    r�_python_exitr6bsL�����!�'�'�)�*�E�!�������"����	����rc�.`�\sQs]�snQsQsQsUsP!)�_RemoteTracebackc��VmP!�N��tb)rr<s&&rr�_RemoteTraceback.__init__�s���rc��UO!r:r;rs&r�__str__�_RemoteTraceback.__str__�s���w�w�rr;)r%r&r'r(rr?r)r*r+s@rr8r8�s������rr8c�.`�\sQs]�snQsQsQsUsP!)�_ExceptionWithTracebackc��PO[[U2V22oVmPUOmQU*UmP!)�z

"""
%s""")r2r�type�exc�
__traceback__r<)rrFr<s&&&rr� _ExceptionWithTraceback.__init__�s;��
�W�W�%�d�3�i��9�
:����"&����� �2�%��rc�@�[UOUO11!r:)�_rebuild_excrFr<rs&r�
__reduce__�"_ExceptionWithTraceback.__reduce__�s���d�h�h����0�0�0r�rFr<)r%r&r'r(rrKr)r*r+s@rrBrB�s����&�1�1rrBc�(�[U2UmU!r:)r8�	__cause__rMs&&rrJrJ�s��$�R�(�C�M��Jrc�(`�\sQs]�snQsQsUsP!)�	_WorkItemc�8�VmV mV0mV@mP!r:)�future�fn�args�kwargs)rrSrTrUrVs&&&&&rr�_WorkItem.__init__�s�������	��r)rUrTrSrV�r%r&r'r(rr)r*r+s@rrQrQ�������rrQc�,`�\sQs]�snQQksQsUsP!)�_ResultItemc�8�VmV mV0mV@mP!r:)�work_id�	exception�result�exit_pid)rr]r^r_r`s&&&&&rr�_ResultItem.__init__�s����"���� �
r)r^r`r_r]�NNNrXr+s@rr[r[�s����!�!rr[c�(`�\sQs]�snQsQsUsP!)�	_CallItemc�8�VmV mV0mV@mP!r:)r]rTrUrV)rr]rTrUrVs&&&&&rr�_CallItem.__init__�s�������	��r)rUrTrVr]rXr+s@rrdrd�rYrrdc�H``�\sQs]�snQsQU1QkksU1QksQsUsU9s	!)�
_SafeQueuez=Safe Queue set exception to the future object linked to a jobc�B:�V0mV@m[RU_
VQ5P!))�ctx)�pending_work_itemsr4�superr)r�max_sizerjrkr4�	__class__s&&$$$�rr�_SafeQueue.__init__�s���"4��*��
�����+rc�:�[U[2%c�[[U2VO2o[QO
POU222UmUOOUOP2oUOO2UdUOOU2P!P![ RU_EV2P!)z

"""
{}""")�
isinstancerdrrErGr8�formatr2rOrk�popr]r4rrS�
set_exceptionrl�_on_queue_feeder_error)r�e�objr<�	work_itemrns&&&  �rru�!_SafeQueue._on_queue_feeder_error�s�����c�9�%�%�!�$�q�'�1�o�o�>�B�*�>�+@�+@������+M�N�A�K��/�/�3�3�C�K�K��F�I����%�%�'��$�� � �.�.�q�1�%�
�G�*�1�2r)rkr4��)
r%r&r'r(�__doc__rrur)r*�
__classcell__�rnr,s@@rrhrh�s����G�,�
3�3rrhc�<�STt,tFD	p UMJ	to!ttoh)z�Processes a chunk of an iterable passed to map.

Runs the function passed to map() on a chunk of the
iterable passed to map.

This function is run in a separate process.

�)rT�chunkrUs&& r�_process_chunkr��s ��#(�(�%�$�B��I�%�(�(��(s�c	���UO[VV4Q52P![c=o[XUO2oSO[XSQ52Po=P!Po=hh9h)z.Safely send back the given result or exception)r_r^r`�r^r`)�putr[�
BaseExceptionrBrG)�result_queuer]r_r^r`rvrFs&&&&&  r�_sendback_resultr��s`��9�����W�/8�M�	N���9�%�a���9������W�.6�8�	9�	9��9�s�!�	A(�A(�1A#�#A(c�r�Ud	UU]oPoUO	P	Q5oUe'UO[O22P!Ud%U]*
oVT6�c[O2oUOUO-UO@o[VOUUQ5==UeJ�P![c&[OOQP	Q5P!h9h[c8o	[X�O2o
[XOS
SQ5Po	=	KyPo	=	hh9h)a�Evaluates calls from call_queue and places the results in result_queue.

This worker is run in a separate process.

Args:
    call_queue: A ctx.Queue of _CallItems that will be read and
        evaluated by the worker.
    result_queue: A ctx.Queue of _ResultItems that will written
        to by the worker.
    initializer: A callable initializer, or None
    initargs: A tuple of args for the initializer
zException in initializer:)�exc_info��block)r_r`r�)r�r�LOGGER�critical�getr��os�getpidrTrUrVr�r]rBrG)�
call_queuer��initializer�initargs�	max_tasks�	num_tasksr`�	call_item�rrvrFs&&&&&      r�_process_workerr��s%����	���"��I��H�
��N�N��N�.�	������R�Y�Y�[�)��� ���N�I��%��9�9�;��		����i�n�n�A�	�0@�0@�A�A�
�\�+<�+<�Q�&.�
0��
�����G�	��L�L�!�!�"=��!�M�
�		��*�	0�)�!�_�_�=�C��\�+<�+<��&.�
0�
0��	0�s5�C�8'C4�	C1�"C1�0C1�4	D6�>D6�?-D1�1D6c�|�UO[UUUUU1Q5oUO2VvUO$P!)z=Start one worker process and record it in *processes* by pid.)�targetrU)�Processr��start�pid)�
mp_contextr�r�r�r��max_tasks_per_child�	processes�ps&&&&&&& r�
_spawn_workerr�sG��	��������!�	#�	�	$�A��G�G�I��a�e�e�rc�``�\sQsQsnQsU1QksQsQsQsQs	Qs
Q	sQQ
ksQQks
QsQ
sQsQQksQsQsUsU9s!)�_ExecutorManagerThread�aXManages the communication between this process and the worker processes.

The manager is run in a local thread.

Args:
    executor: A reference to the ProcessPoolExecutor that owns
        this thread. A weakref will be own by the manager as well as
        references to internal objects used to introspect the state of
        the executor.
c��:�UOUmUOUmUO[O
O1Qko[OV2Um	UOUmUOUm
UOUmUO UmUO$UmUO(UmUO,Um[0RU_e2P!)c�8�UQ2UO2P!)z?Executor collected: triggering callback for QueueManager wakeup)r)r3r4�
mp_util_debugs&&&r�
weakref_cb�3_ExecutorManagerThread.__init__.<locals>.weakref_cb8s��
�1�
2�� � �"r)�_executor_manager_thread_wakeupr4�_shutdown_lock�
shutdown_lockr
�util�debug�weakref�ref�executor_reference�
_processesr��_call_queuer��
_result_queuer��	_work_ids�work_ids_queue�_max_tasks_per_childr��_max_workers�max_workers�_pending_work_itemsrkrlr)r�executorr�rns&& �rr�_ExecutorManagerThread.__init__*s����
&�E�E���%�4�4���&*�%7�%7�%'�W�W�]�]�	#�#*�+�+�h�"C���"�,�,���#�.�.���%�2�2���'�0�0���$,�#@�#@�� �$�0�0���#+�">�">���
���rc��UO2UO	2vq4oU%cUOU2P!Ud�UOU2UOPIoU%c6UOOUO2oUO2=U%cFUO9^tt^2UO2oPPP2WdUOUP!L3UO29o%cUOO2=UO2%fCJ:UO!2UO2UO"%cCJoUO%2P![c(o[S2oSOS2Po=P!Po=hh9h)%fhK�9hr)�add_call_item_to_queuer�r�terminate_broken�wait_result_broken_or_wakeup�process_result_itemr`r�rsr2r��_replace_dead_workerr��_idle_worker_semaphore�release�is_shutting_down�flag_executor_shutting_downrk�join_executor_internals)	rrF�cause�result_item�	is_broken�process_exitedr��brokenr�s	&        r�run�_ExecutorManagerThread.runasv���
��+�+�-�-1�,M�,M�,O�)�K�E���%�%�e�,���&��(�(��5�!,�!5�!5�T�!A��!����*�*�;�+?�+?�@�A��F�F�H� �!��+�+�+�!%�!:�!:�!<��,��)��-�-�v�6��*�"&�!8�!8�!:�:�X�:��3�3�;�;�=� ��$�$�&�&��0�0�2�
�+�+�-��.�.�.��0�0�2���Y!�
�(��-���%�%�e�,���
��.,�+�s/�F�?F8�	F5�
F5�F0�0F5�8G	�G	c	��UOO2%fPgPoPoUO2oUeQoL�UO%cQoL�UO%fUO2%f}[
UO2UO6cY[UOUOUOUOUOUOUO2=UO%fUO%fUdV1!P![ co[#S2oQoPo=KKPo=hh9h)a'Spawn a replacement for a worker that exited at its
max_tasks_per_child limit.  Called under self.shutdown_lock.

Returns None while the pool can still make progress, otherwise a
(cause, message) tuple describing why the remaining work items can
never run, so that run() can fail their futures.
z�The ProcessPoolExecutor was garbage collected with work pending after its last worker process exited upon reaching max_tasks_per_child; the pending work can never be run.ztA worker process exited while the pool was being forcefully shut down; work that was still enqueued will not be run.znA replacement worker process could not be started, leaving the pool without workers to run the remaining work.)r��lockedr��_force_shutting_downrkr��lenr�r�r��_mp_contextr�r��_initializer�	_initargsr��	Exceptionr)rr��messager�rFs&    rr��+_ExecutorManagerThread._replace_dead_worker�s%���!�!�(�(�*�*�*�*������*�*�,����+�G��
*�
*�
*�*�G��
$�
$�
$�D�,A�,A�,C�,C��4�>�>�"�T�%5�%5�5�
=�!�(�"6�"6����"&�"3�"3�X�5J�5J�"*�"4�"4�"&�":�":�D�N�N�L�
��~�~�~�4�#:�#:�#:�&+�&7��#�#���%!�=�-�S�1�E� <�G��=�s�!AD&�&	E�0E�1
E�Ec���UOO2%cP!UOOP
Q5oUOU*oUO
O
2%cJUOO[UUOUOUO2P	Q5J�UOUJ�[OcP!h9h)Tr�)r��fullr�r�rkrS�set_running_or_notify_cancelr�rdrTrUrV�queue�Empty)rr]rxs&  rr��-_ExecutorManagerThread.add_call_item_to_queue�s�������#�#�%�%��
��-�-�1�1��1�>��!�3�3�G�<�	��#�#�@�@�B�B��O�O�'�'�	�'�2;�,�,�2;�.�.�2;�2B�2B�)D�/3�	(�4��/�/��8����;�;�
��
�s�C
�
C&�!C&�%C&c�<�UOOoUOO%cPgUOOoV,o[	UO
O
22Tt,tFDpDOMJ	oo[OOV5*2oPoP	oPo	V7cUO2o	P
oLV&7cP
oUOO2V�U1!ttoh[co
[S
2oPo
=
K>Po
=
hh9hr:)r�rr4r	r/r��values�sentinelr
�
connection�wait�recvr�rr#)r�
result_reader�
wakeup_reader�readersr��worker_sentinels�readyr�r�r�rFs&          rr��3_ExecutorManagerThread.wait_result_broken_or_wakeup�s���)�)�1�1�
��%�%�-�-�-�-�-��*�*�2�2�
� �0��04�T�^�^�5J�5J�5L�0M�N�0M�1�J�J�0M��N��
�
�"�"�7�#=�>�����	����!�
.�+�0�0�2��!�	��
#��I���� � �"��u�,�,��%O��!�
.�(��-���
.�s$�3C6�=C;�;	D�D�D�Dc��UOOUOP2oUd]UOd(UOOUO2P!UOO
UO2P!P!r:)rkrsr]r^rSrt�
set_resultr_)rr�rxs&& rr��*_ExecutorManagerThread.process_result_item
sm��
�+�+�/�/��0C�0C�T�J�	�� ��$�$�0�� � �.�.�{�/D�/D�E�� � �+�+�K�,>�,>�?�	!rc�p�UO2o[9%fUPI9%f
UO!r:)r�r.�_shutdown_thread)rr�s& rr��'_ExecutorManagerThread.is_shutting_downs>���*�*�,��
!�-�-�H��$4�-�-��,�,�	.rc��UO2oUdQUmP	UmPoPoUdPOU2oL�,oUOO2FDQoUOeJUO]6wfJ&UOQUOQUO02JS	U%cQOU2oU%cQUQ0LPoUeQoUOO2FDAvq�[U2o
Ud[U2U
m
U	OOU
2=	JC	UOO%2UOO2FDoUO'2J	UO(O+2UO-P	Q5P![ O"cK�h9h)	NzKA child process terminated abruptly, the process pool is not usable anymorezProcess z$ terminated abruptly with exit code �
z
'''
z'''z^A process in the process pool was terminated abruptly while the future was running or pending.)r�)r��_brokenr�r2r�r��exitcode�appendr�rkr1�BrokenProcessPoolr8rOrSrtr�InvalidStateErrorr#�	terminater��_terminate_broken�_join_executor_internals)rr��bpe_messager��	cause_str�errorsr��cause_tbr]rx�bpes&&&        rr��(_ExecutorManagerThread._terminate_broken$s����*�*�,����!1�H��)-�H�%��H�
�	��������I��F��^�^�*�*�,���:�:�)�a�j�j�A�o��M�M�H�Q�U�U�G�44�45�J�J�<�#A�B�-�� �I�I�f�-�	�/8�W�Y�K�s�+�d����O�K�#'�"9�"9�"?�"?�"A��G�#�K�0�C��#� 0�� :��
�
�� � �.�.�s�3��#B�	
���%�%�'����&�&�(�A�
�K�K�M�)�	
���)�)�+�	
�%�%�T�%�2��%�*�*�
�
�
�s�F9�9G�
G�Gc��UO9^tt^2UOV2PPP2P!)%fhP!9hr:)r�r�)rr�r�s&&&rr��'_ExecutorManagerThread.terminate_brokenes+��
�
�
�
��"�"�5�6� �
�
�
�s�2�A	�A	c��UO2oUd�P	UmUO%cq-oUOO	2FD+vq4UO
O
2%cJ'VBU$J-	V mUOO2JP!P![OcLh9hP
SmP!r:)r�r��_cancel_pending_futuresrkr1rS�cancelr��
get_nowaitr�r�)rr��new_pending_work_itemsr]rxs&    rr��2_ExecutorManagerThread.flag_executor_shutting_downis����*�*�,����(,�H�%��/�/�/�*,�&�*.�*A�*A�*G�*G�*I�&�G�$�+�+�2�2�4�4�:C�w�7�+J�+A�'����+�+�6�6�8�0� �� !�;�;�����49��0s�B#�#B;�7B;�:B;c�"�UO2o]oV!6cXUO2]6�cA[V*
2FD(oUOOP2U]*
oJ*	J[P!P![O
cJyh9hrz)�get_n_children_alive�ranger��
put_nowaitr��Full)r�n_children_to_stop�n_sentinels_sent�is&   r�shutdown_workers�'_ExecutorManagerThread.shutdown_workers�s���!�6�6�8���� �4��-�-�/�!�3��-�@�A����O�O�.�.�t�4�$��)�$�B�4�5���z�z����s�$A3�3B�B�
Bc��UO9^tt^2UO2PPP2P!)%fhP!9hr:)r�r�rs&rr��._ExecutorManagerThread.join_executor_internals�s)��
�
�
�
��)�)�+� �
�
�
�s�1�A	�A	c�h�U%fUO2UOO2UOO2UOO2UO
O
2FD+oU%cUO2UO2J-	P!r:)	rr�r�join_threadr4r�r�r�r2)rr�r�s&& rr��/_ExecutorManagerThread._join_executor_internals�ss����!�!�#�	
���������#�#�%���� � �"����&�&�(�A�����
�
�F�F�H�)rc�V�[QUOO222!)c3�L�SF �DpO2w�	J	P!3hr:)�is_alive)�.0r�s& r�	<genexpr>�>_ExecutorManagerThread.get_n_children_alive.<locals>.<genexpr>�s��)@���)@�A�:�:�<�<�)@�s�$)�sumr�r�rs&rr�+_ExecutorManagerThread.get_n_children_alive�s ���A����)>�)>�)@�A�A�Ar)
r�r�r�r�rkr�r�r�r4r�r:)F)r%r&r'r(r|rr�r�r�r�r�r�r�r�r�rr�r�rr)r*r}r~s@@rr�r�s\����	�5�n4�l?�B�.-�<@�.�?3�B7�9�4�,��"B�Brr�c�R�[%c[%c[[2gP	r]PHo[
OQ2oUP6XcP!UQ6�cP!QU*r[[2g[cQr[[2gh9h[[1cP!h9h)TzxThis Python build lacks multiprocessing.synchronize, usually due to named semaphores being unavailable on this platform.�SC_SEM_NSEMS_MAX�z@system provides too few semaphores (%d available, 256 necessary))	�_system_limits_checked�_system_limited�NotImplementedError�multiprocessing.synchronize�ImportErrorr��sysconf�AttributeError�
ValueError)�multiprocessing�	nsems_maxs  r�_check_system_limitsr/�s������?�%�o�6�6�!��3�*���J�J�1�2�	��B��	��C��	�4�6?�@�O�
�o�
.�.��+�3�
F�	�"�/�2�2�3��
�J�'����s(�A1�B�1	B�;B�B&�!B&�%B&c#�~ �SFD0oUO2U%fJUO2w�	J	P!3h)z�
Specialized implementation of itertools.chain.from_iterable.
Each item in *iterable* should be a list.  This function is
careful not to keep references to yielded objects.
)�reversers)�iterable�elements& r�_chain_from_iterable_of_listsr4�s,����������g��+�+�-���s�=�=c��\sQsQsQsQsP!)r���zm
Raised when a process in a ProcessPoolExecutor terminated abruptly
while a future was in the running state.
r�)r%r&r'r(r|r)r�rrr�r��s��rr�r��killc�,``�\sQsQsnQQP-QkksQsQsQsQsQs	\
OOO\	mQ	PQ
]QP-U1Qkks
QQ
P
-Qkks\
OOO\mQsQsQsQsUsU9s!)�ProcessPoolExecutor��r�c�X�[2UeZ[O29%f]Um[O
Q6Xc [
[UO2UmLJU]6:c[Q2g[O
Q6XcU[6�c[Q[02gVmUe1Ud[OQ2oL[O2oV mUOOP
Q5Q6gUm
Ud[U2%f[Q2gV0mV@mUd`[%U[&2%f[Q2gU]6:c[Q	2gUOOP
Q5Q6Xc[Q
2gVPmPUm-UmP
Um[0O22Um[0O6]2UmP
Um]Um-UmP
Um P
Um![E2Um#UO[H*o[KV`OUO>UOFQ5Um&P	UOLm'UOQ2Um)[TOV2Um,P!)a�Initializes a new ProcessPoolExecutor instance.

Args:
    max_workers: The maximum number of processes that can be used to
        execute the given calls.  If None or not given then as many
        worker processes will be created as the machine has
        processors.
    mp_context: A multiprocessing context to launch the workers
        created using the multiprocessing.get_context('start method')
        API.  This object should provide SimpleQueue, Queue and
        Process.
    initializer: A callable used to initialize worker processes.
    initargs: A tuple of arguments to pass to the initializer.
    max_tasks_per_child: The maximum number of tasks a worker
        process can complete before it will exit and be replaced
        with a fresh worker process.  The default of None means
        worker process will live as long as the executor.  Requires
        a non-'fork' mp_context start method.  When given, we
        default to using 'spawn' if no mp_context is supplied.
�win32z"max_workers must be greater than 0zmax_workers must be <= �spawn)�
allow_none�forkzinitializer must be a callablez&max_tasks_per_child must be an integerz max_tasks_per_child must be >= 1zpmax_tasks_per_child is incompatible with the 'fork' multiprocessing start method; supply a different mp_context.)rmrjrkr4)-r/r��process_cpu_countr��sys�platform�min�_MAX_WINDOWS_WORKERSr,r
�get_contextr��get_start_method�#_safe_to_dynamically_spawn_children�callable�	TypeErrorr�r�rq�intr��_executor_manager_threadr�r�r
rr��	Semaphorer�r��_queue_countr�rr�rr��EXTRA_QUEUED_CALLSrhr��
_ignore_epipe�SimpleQueuer�r�rr�)rr�r�r�r�r��
queue_sizes&&&&&$ rr�ProcessPoolExecutor.__init__�sa��,	���� "� 4� 4� 6� ;� ;�!�D���|�|�w�&�$'�(<�(,�(9�(9�%;��!���a�� �!E�F�F��,�,�'�)��2�2� �-�.B�-C�D�F�F�!,����"�.��^�^�G�4�
��^�^�-�
�%��� � �1�1�U�1�C�v�M�	
�0��"�8�K�+@�+@��<�=�=�'��!���*��1�3�7�7�� H�I�I�$��)� �!C�D�D����0�0�E�0�B�f�L� �"C�D�D�%8�!�)-��%����!&���'�n�n�.���&/�&9�&9�!�&<��#�������#%�� �',��$�$)��!�0=���,��&�&�);�;�
�%��%5�%5�#�7�7��>�>�@���*.����&�'�3�3�5��������rc��UOelUO%fUO2[U2UmUOO	2UO
[UO$P!P!r:)rKrG�_launch_processesr�r�r�r0rs&r�_start_executor_manager_thread�2ProcessPoolExecutor._start_executor_manager_threadZsc���(�(�0��;�;�;��&�&�(�,B�4�,H�D�)��)�)�/�/�1��4�4�
�T�:�:�;�
1rc�\�UOeP!UO%cP!UOOP
Q5%cP![	UO2oVO
6c>UO%fUO%cPQ2gUO2P!P!)N)�blockingz.https://github.com/python/cpython/issues/90622)	r�r�r��acquirer�r�rGrK�_spawn_process)r�
process_counts& r�_adjust_process_count�)ProcessPoolExecutor._adjust_process_countds����?�?�"���$�$�$���&�&�.�.��.�>�>���D�O�O�,�
��,�,�,��<�<�<��8�8�8�
F�D�
F�9�
���!�-rc��UO%cPQ2g[[UO2UO2FDoUO2J	P!)zhProcesses cannot be fork()ed after the thread has started, deadlock in the child processes could result.)rKr
r�r�r�rZ)rr3s& rrT�%ProcessPoolExecutor._launch_processes}sR���0�0�0�	A�@�	A�0��s�4�?�?�+�T�->�->�?�A����!�@rc	��[UOUOUOUOUO
UOUO2P!r:)r�r�r�r�r�r�r�r�rs&rrZ�"ProcessPoolExecutor._spawn_process�sA���d�&�&��(8�(8��(�(�$�*;�*;��n�n�d�&?�&?��o�o�	'rc��UO9^tt^2UO%c[UO2gUO%c[	Q2g[
%c[	Q2g[O2o[VAV#2oVPOUO$UOOUO2U9O]*
tm
UOO2UO%cUO!2UO#2UttPPP2!)%fhP!9h)z*cannot schedule new futures after shutdownz6cannot schedule new futures after interpreter shutdown)r�r�r�r�r r.r�FuturerQr�rMr�r�r�rrGr\rU)rrTrUrV�f�ws""*,  r�submit�ProcessPoolExecutor.submit�s���
�
 �
 �
 ��|�|�|�'����5�5��$�$�$�"�#O�P�P���"�$:�;�;�����A��!��.�A�:;�$�$�T�%6�%6�7��N�N���t�0�0�1�����"���0�0�7�7�9��7�7�7��*�*�,��/�/�1��+!�
 �
 �
 �s)�E�&E�E�'B-E�!E�E	�
E	�timeout�	chunksize�
buffersizec	�:�U]6c[Q2g[RU_	[[U2[
O[UU2UUQ5o[U2!)a'Returns an iterator equivalent to map(fn, iter).

Args:
    fn: A callable that will take as many arguments as there are
        passed iterables.
    timeout: The maximum number of seconds to wait.  If None, then
        there is no limit on the wait time.
    chunksize: If greater than one, the iterables will be chopped
        into chunks of size chunksize and submitted to the process
        pool.  If set to one, the items in the list will be sent
        one at a time.
    buffersize: The number of submitted tasks whose results have not
        yet been yielded.  If the buffer is full, iteration over the
        iterables pauses until a result is yielded from the buffer.
        If None, all input elements are eagerly collected, and
        a task is submitted for each.

Returns:
    An iterator equivalent to: map(func, *iterables) but the calls
    may be evaluated out-of-order.

Raises:
    TimeoutError: If the entire result iterator could not be
        generated before the given timeout.
    Exception: If fn(*args) raises for any values.
zchunksize must be >= 1.)rhrj)	r,rl�maprr��	itertools�batched�zipr4)rrTrhrirj�	iterables�resultsrns&&$$$* �rrl�ProcessPoolExecutor.map�s[���6�q�=��6�7�7��'�+�g�n�b�9�'�/�/��Y���K�&-�)3��5��-�W�5�5r�cancel_futuresc���UO9^tt^2V mP	UmUOdUOO	2PPP2UO
d#U%cUO
O
2PUmPUmUOd#U%cUOO2PUmPUm
PUmP!)%fhK�9hr)r�rr�r�rrKr2r�r�rr�)rr�rss&&$r�shutdown�ProcessPoolExecutor.shutdown�s���
�
 �
 �
 �+9�(�$(�D�!��3�3�?��4�4�;�;�=�!��(�(�4���)�)�.�.�0�)-��%�������)�d����$�$�&�!������/3��,�#!�
 �s�C�C�C)	�"C)	c�b�U[7c[QU802gUO9^tt^2P	UmPPP2-oUO%cUOO2oUO
P
P	Q5U%fP!UO2FDXoUO2%fJU[6XcUO2J;U[6XcUO2JXJZ	P!)%fhK�9h[cJh9h[cJ�h9h)aGAttempts to terminate or kill the executor's workers based off the
given operation. Iterates through all of the current processes and
performs the relevant task if the process is still alive.

After terminating workers, the pool will be in a broken state
and no longer usable (for instance, new tasks should not be
submitted).
zUnsupported operation: )r�rs)�_SHUTDOWN_CALLBACK_OPERATIONr,r�r�r��copyrur�r�
_TERMINATEr��_KILLr7�ProcessLookupError)r�	operationr��procs&&  r�_force_shutdown�#ProcessPoolExecutor._force_shutdown�s����8�8��6�y�m�D�E�E��
 �
 �
 �(,�D�%�!��	��?�?�?����,�,�.�I�
	
�
�
�5��
�6����$�$�&�D�
��}�}����'�
��
�*��N�N�$��%�'��I�I�K�(�'�!�
 ��&�
��
��&�
��
�sS�C:� D
�:
D�D�
D�"D�:D
	�D
	�
	D�D�D�	D.�)D.�-D.c�0�UO[Q5!)aAttempts to terminate the executor's workers.
Iterates through all of the current worker processes and terminates
each one that is still alive.

After terminating workers, the pool will be in a broken state
and no longer usable (for instance, new tasks should not be
submitted).
�r})rrzrs&r�terminate_workers�%ProcessPoolExecutor.terminate_workerss���#�#�j�#�9�9rc�0�UO[Q5!)a	Attempts to kill the executor's workers.
Iterates through all of the current worker processes and kills
each one that is still alive.

After killing workers, the pool will be in a broken state
and no longer usable (for instance, new tasks should not be
submitted).
r�)rr{rs&r�kill_workers� ProcessPoolExecutor.kill_workerss���#�#�e�#�4�4r)r�r�rrKr�r�r�r�r�r�r�r�r�r�rMr�rGr�r�r�)NNNr�r)r%r&r'r(rrUr\rTrZrfr�Executorr|rlrurr�r�r)r*r}r~s@@rr9r9�s�����m'�GK�m'�^5�"�2"�'��.�^�^�*�*�2�2�F�N�"6�$�"6�!�"6��"6�H4�E�4�(�~�~�.�.�6�6�H��/�b	:�	5�	5rr9rbr:)5r|�
__author__r��concurrent.futuresrr�r-r
�multiprocessing.connection�multiprocessing.queuesrr
r��	functoolsrrmrA�	tracebackr�WeakKeyDictionaryr0r.rr6�_register_atexitrNrDr�r8rBrJ�objectrQr[rdrhr�r�r�r��Threadr�r%r&r/r4�BrokenExecutorr�rzr{rxr�r9r�rr�<module>r�sM��(�T2�
�	�$���"�(�����
�&��,�,�.����&�&�<�
���<�(������y��	1�	1�����!�&�!����3��3�,	)�	9�3�l�JB�Y�-�-�JB�Z����/�@	 ���,�,���
����	� ��y5�%�.�.�y5r

Youez - 2016 - github.com/yon3zu
LinuXploit