| Server IP : 121.121.20.254 / Your IP : 216.73.216.220 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/__pycache__/ |
Upload File : |
�
���g} � �~ � d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl Z dZ
dZdZ G d� d ej � Zy)
ar This test case provides support for checking forking and wait behavior.
To test different wait behavior, override the wait_impl method.
We want fork1() semantics -- only the forking thread survives in the
child after a fork().
On some systems (e.g. Solaris without posix threads) we find that all
active threads survive in the child after a fork(); this is an error.
� N)�support)�threading_helper� g �?� c �* � e Zd Zd� Zd� Zd� Zd� Zd� Zy)�ForkWaitc �` � t j � | _ i | _ d| _ g | _ y )Nr )r �threading_setup�_threading_key�alive�stop�threads)�selfs �#C:\Python312\\Lib\test\fork_wait.py�setUpzForkWait.setUp s( � �.�>�>�@�����
��� ���� c �� � d| _ | j D ] }|j � � d }| j j � t j
| j � y )N� )r
r �join�clearr �threading_cleanupr )r �threads r �tearDownzForkWait.tearDown sI � ��� ��l�l�F��K�K�M� #����������*�*�D�,?�,?�@r c �� � | j sIt j � | j |<