File: //lib/python3.10/multiprocessing/__pycache__/pool.cpython-310.pyc
o
    E�h�  �                   @   sd  d dgZ ddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZ ddl
mZm
Z
 ddlmZ dZd	Zd
ZdZe�� Zdd
� Zdd� ZG dd� de�ZG dd� d�Zdd� ZG dd� de�Z		d*dd�Zdd� ZG dd� de�Z G d d � d e!�Z"G d!d"� d"e!�Z#e#Z$G d#d$� d$e#�Z%G d%d&� d&e!�Z&G d'd(� d(e&�Z'G d)d� de"�Z(dS )+�Pool�
ThreadPool�    N�   )�util)�get_context�TimeoutError)�wait�INIT�RUN�CLOSE�	TERMINATEc                 C   s   t t| � �S �N)�list�map��args� r   �+/usr/lib/python3.10/multiprocessing/pool.py�mapstar/   �   r   c                 C   s   t t�| d | d ��S )Nr   r   )r   �	itertools�starmapr   r   r   r   �starmapstar2   s   r   c                   @   �   e Zd Zdd� Zdd� ZdS )�RemoteTracebackc                 C   s
   || _ d S r
   ��tb)�selfr   r   r   r   �__init__:   �   
zRemoteTraceback.__init__c                 C   s   | j S r
   r   �r   r   r   r   �__str__<