관리-도구
편집 파일: context.cpython-310.opt-2.pyc
o 6��fM- � @ s� d dl Z d dlZd dlZddlmZ ddlmZ dZG dd� de�ZG dd � d e�Z G d d� de�Z G dd � d e�ZG dd� de�Z G dd� dej�ZG dd� de �Zejdkr�G dd� dej�ZG dd� dej�ZG dd� dej�ZG dd� de �ZG dd� de �ZG dd � d e �Ze� e� e� d!�Zejd"kr�eed# �Zn#eed$ �ZnG d%d� dej�ZG d&d� de �Zd#e� iZeed# �Zd'd(� Ze�� Zd)d*� Zd+d,� Zd-d.� ZdS )/� N� )�process)� reduction� c @ � e Zd ZdS )�ProcessErrorN��__name__� __module__�__qualname__r r r �>/opt/alt/python310/lib64/python3.10/multiprocessing/context.pyr � r c @ r )�BufferTooShortNr r r r r r r r c @ r )�TimeoutErrorNr r r r r r r r c @ r )�AuthenticationErrorNr r r r r r r r c @ s\ e Zd ZeZeZeZeZeej �Z eej �Z eej�Zdd� Zdd� Z dCdd�Zdd � Zd d� ZdDd d�ZdEdd�ZdEdd�Zdd� ZdFdd�ZdGdd�ZdGdd�Zdd� Z dHd d!�Zd"d#� Zd$d%� Zdd&�d'd(�Zdd&�d)d*�Zd+d,� Zd-d.� ZdDd/d0�Z d1d2� Z!d3d4� Z"d5d6� Z#dDd7d8�Z$dId:d;�Z%dId<d=�Z&e'd>d?� �Z(e(j)d@d?� �Z(dAdB� Z*dS )J�BaseContextc C s t �� }|d u r td��|S )Nzcannot determine number of cpus)�os� cpu_count�NotImplementedError)�selfZnumr r r r ) s zBaseContext.cpu_countc C s( ddl m} || �� d�}|�� |S )Nr )�SyncManager��ctx)Zmanagersr �get_context�start)r r �mr r r �Manager1 s zBaseContext.ManagerTc C � ddl m} ||�S )Nr )�Pipe)� connectionr )r Zduplexr r r r r <