Uname : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
Soft : Apache
Ip : 203.161.60.200
Port : 443
~
/
opt
/
alt
/
python311
/
lib64
/
python3.11
/
__pycache__
[ HOME ]
Exec
Submit
queue.cpython-311.pyc
� �,d�, � �J � d Z ddlZddlZddlmZ ddlmZmZ ddlm Z ddl mZ n # e$ r dZY nw xY wg d�Z ddl mZ n# e$ r G d � d e� � ZY nw xY w G d� de� � Z G d � d� � Z G d� de� � Z G d� de� � Z G d� d� � Ze�eZdS dS )z'A multi-producer, multi-consumer queue.� N)�deque)�heappush�heappop)� monotonic)�SimpleQueue)�Empty�Full�Queue� PriorityQueue� LifoQueuer )r c � � e Zd ZdZdS )r z4Exception raised by Queue.get(block=0)/get_nowait().N��__name__� __module__�__qualname__�__doc__� � �,/opt/alt/python311/lib64/python3.11/queue.pyr r s � � � � � �>�>��r r c � � e Zd ZdZdS )r z4Exception raised by Queue.put(block=0)/put_nowait().Nr r r r r r s � � � � � �:�:��Dr r c � � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zd� Z dd�Z dd�Zd � Zd� Z d� Zd� Zd� Zd� Z eej � � Zd S )r zjCreate a queue object with a given maximum size. If maxsize is <= 0, the queue size is infinite. r c �0 � || _ | � |� � t j � � | _ t j | j � � | _ t j | j � � | _ t j | j � � | _ d| _ d S �Nr ) �maxsize�_init� threading�Lock�mutex� Condition� not_empty�not_full�all_tasks_done�unfinished_tasks��selfr s r �__init__zQueue.__init__"