File: D:/Python311/Lib/test/__pycache__/test_thread.cpython-311.pyc
�
��VcV# � � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlZd dl Z d dl
Z
d dlmZ ej d�� � dZ
dZd Z ej � � Zd
� Z G d� dej � � Z G d
� de� � Z G d� d� � Z G d� de� � Z G d� dej � � Z G d� dej � � Zedk r ej � � dS dS )� N)�support)�threading_helper)�
lock_testsT)�module�
� g{�G�z�?c � � t j r1t 5 t | � � ddd� � dS # 1 swxY w Y dS dS )z2Helper function for printing out debugging output.N)r �verbose�_print_mutex�print)�args �$D:\Python311\Lib\test\test_thread.py�
verbose_printr s� � ��� �
� � ��#�J�J�J� � � � � � � � � � � � ���� � � � � � �� s �1�5�5c � � e Zd Zd� ZdS )�BasicThreadTestc �H � t j � � | _ | j � � � t j � � | _ t j � � | _ d| _ d| _ d| _ t j
� � } | j t j g|�R � d S �Nr )
�thread�
allocate_lock�
done_mutex�acquire�
running_mutex�random_mutex�created�running�
next_identr �threading_setup�
addCleanup�threading_cleanup)�self�keys r �setUpzBasicThreadTest.setUp s� � � �.�0�0�������!�!�!�#�1�3�3���"�0�2�2�������������.�0�0�����(�:�A�S�A�A�A�A�A�A� N)�__name__�
__module__�__qualname__r"