403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/flup/server/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/flup/server/__pycache__/threadpool.cpython-311.pyc
�

#H\a���d�dZdZddlZ	ddlZn#e$rddlZYnwxYwddlZGd�de��ZdS)zAllan Saddi <allan@saddi.com>z
$Revision$�Nc�(�eZdZdZd
d�Zdd�Zd�Zd	S)�
ThreadPoolz�
    Thread pool that maintains the number of idle threads between
    minSpare and maxSpare inclusive. By default, there is no limit on
    the number of threads that can be started, but this can be controlled
    by maxThreads.
    �����c��||_||_t||��|_t	j��|_g|_|x|_|_	t|��D]}tj|j
d���dS)N�)�	_minSpare�	_maxSpare�max�_maxThreads�	threading�	Condition�_lock�
_workQueue�
_idleCount�_workerCount�range�thread�start_new_thread�_worker)�self�minSpare�maxSpare�
maxThreads�is     �8/usr/lib/python3/dist-packages/flup/server/threadpool.py�__init__zThreadPool.__init__,s���!���!����x��4�4����(�*�*��
����.6�6���$�+��x���	6�	6�A��#�D�L�"�5�5�5�5�	6�	6�Tc�N�|j���	|j|jkrj|j|jkrZ|xjdz
c_|xjdz
c_t
j|jd��|j|jkr|j|jk�Z|js|rO|j	�
|��|j���	|j���dS	|j���dS#|j���wxYw)a
        Adds a job to the work queue. The job object should have a run()
        method. If allowQueuing is True (the default), the job will be
        added to the work queue regardless if there are any idle threads
        ready. (The only way for there to be no idle threads is if maxThreads
        is some reasonable, finite limit.)

        Otherwise, if allowQueuing is False, and there are no more idle
        threads, the job will not be queued.

        Returns True if the job was queued, False otherwise.
        rr	TF)
r�acquirerr
rr
rrrr�append�notify�release)r�job�allowQueuings   r�addJobzThreadPool.addJob9s-��	
�
������	!��/�D�N�2�2��#�d�&6�6�6��!�!�Q�&�!�!����1�$����'���b�9�9�9�	�/�D�N�2�2��#�d�&6�6�6���
�,�
���&�&�s�+�+�+��
�!�!�#�#�#��
�J��� � � � � ���J��� � � � � ��D�J��� � � � ���s�B6D	�	D$c�r�|j���	|js |j���|j� |j�d��}|jdksJ�|xjdzc_|j���	|���n#YnxYw|j���|j|jkrn#|xjdz
c_|j|jksJ���|j	|jksJ�|xj	dzc_	|j���dS)zN
        Worker thread routine. Waits for a job, executes it, repeat.
        TrrN)
rr!r�wait�poprr$�runrr)rr%s  rrzThreadPool._workerYsM��	
�
������	5��o�
"��
���!�!�!��o�
"��/�%�%�a�(�(�C��?�Q�&�&�&�&��O�O�q� �O�O��J��� � � �
����	�	�	�	��
�������J��� � � ���$�.�0�0���O�O�q� �O�O��?�d�n�4�4�4�4�1	5�6� �4�>�1�1�1�1����Q�����
�������s�B(�(B,N)rrr)T)�__name__�
__module__�__qualname__�__doc__rr'rr	rrrr%sV��������6�6�6�6�!�!�!�!�@#�#�#�#�#rr)	�
__author__�__version__�sys�_threadr�ImportErrorr�objectrr	rr�<module>r6s���6-�
���
�
�
�
�������������M�M�M�M�M���������W�W�W�W�W��W�W�W�W�Ws��	�

Youez - 2016 - github.com/yon3zu
LinuXploit