Your IP : 3.137.174.253
o
6��f�. � @ s� g d �Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m
Z
mZ ddlZddl
mZ ddl
mZ ejjZddlmZmZmZmZmZ G dd � d e�Ze� ZG d
d� de�ZG dd
� d
e�ZdS ))�Queue�SimpleQueue�
JoinableQueue� N)�Empty�Full� )�
connection)�context)�debug�info�Finalize�register_after_fork�
is_exitingc @ s� e Zd Zd-dd�Zdd� Zdd� Zdd � Zd.dd�Zd/dd�Zd/dd�Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd � Zd!d"� Zd#d$� Zed%d&� �Zed'd(� �Zed)d*� �Zed+d,� �ZdS )0r r c C s� |dkr
ddl m} || _tjdd�\| _| _|�� | _t �
� | _tj
dkr*d | _n|�� | _|�|�| _d| _| �� tj
dkrIt| tj� d S d S )Nr r )�
SEM_VALUE_MAXF�Zduplex�win32)Zsynchronizer �_maxsizer �Pipe�_reader�_writer�Lock�_rlock�os�getpid�_opid�sys�platform�_wlockZBoundedSemaphore�_sem�
_ignore_epipe�_resetr
r �_after_fork��self�maxsize�ctx� r&