%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
a
�_g/7 � @ sx d Z ddlmZ g d�ZddlZejZejZ ddl
Z
ddlZddlm
Z
ddlmZ ddlmZ ddlmZ dd lmZmZ dd
lmZ ddlmZ e
Z
eZeZeZeZeZeZeZdd
� Zdd� ZdZ G dd� de�Zdd� Z!dd� Z"G dd� dej#�Z#e�$d� G dd� de#ej%�Z%e�$d� eZ&e�$d� e�'d� e�$d� eZe�'d� e(ed��rldZ)e�$d� dd � Z*dS )!a�
Implementation of the standard :mod:`threading` using greenlets.
.. note::
This module is a helper for :mod:`gevent.monkey` and is not
intended to be used directly. For spawning greenlets in your
applications, prefer higher level constructs like
:class:`gevent.Greenlet` class or :func:`gevent.spawn`. Attributes
in this module like ``__threading__`` are implementation artifacts subject
to change at any time.
.. versionchanged:: 1.2.3
Defer adjusting the stdlib's list of active threads until we are
monkey patched. Previously this was done at import time. We are
documented to only be used as a helper for monkey patching, so this should
functionally be the same, but some applications ignore the documentation and
directly import this module anyway.
A positive consequence is that ``import gevent.threading,
threading; threading.current_thread()`` will no longer return a DummyThread
before monkey-patching.
� )�absolute_import)�local�_start_new_thread�_allocate_lock�Lock�
_get_ident�_sleep�_DummyThreadN)r )�start_new_thread)�
allocate_lock)� get_ident)�sleep�
getcurrent)�RLock)�LazyOnClassc C s t j�t| �d � d S �N)�
__threading__�_active�popr )�g� r �=/vddos/python/lib/python3.9/site-packages/gevent/threading.py�_cleanupI s r c s � fdd�}|S )Nc s t j�� d � d S r )r r r )�_r��gidr r �_M s z_make_cleanup_id.<locals>._r )r r r r r �_make_cleanup_idL s r c @ s� e Zd Zd Z ZZd ZZd ZZ d Z
Zd ZZ
d ZZd ZZe�� ZZe�� dZdZdd� Zdd� ZeZd d
� Zedd� �Zej dd
� dkr�ej dd� dkp�ej dd� dkZ!e!r�e"dd� �Z#e#j$dd� �Z#dS )r FTr Nc C s| t �d� | _| _| �� t� }t|�}| t j|<