403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.14/test/support/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.14/test/support/__pycache__/threading_helper.cpython-314.pyc
+
��3j�#���^RIt^RIt^RIt^RIt^RIt^RIt^RIt^RIHtRt	Rt
Rt]PRRl4t
RRlt]PRRl4t!R	R
4tRRlt]!4tR
R/RltRR/3RltR#)�N)�supportc�^�\P!4\\P43#�N)�_thread�_count�len�	threading�	_dangling���4/usr/lib/python3.14/test/support/threading_helper.py�threading_setuprs���>�>��S��!4�!4�5�5�5rc�x�VwrRp\P!VRR7F:p\\P4p\
P!4pWa8:gK9R#	R\n\P!RVR
RVRVR	XR\X42
4VFp\P!R
V:24K	R#)g�?F��errorNTz2threading_cleanup() failed to clean up threads in �.1fz  seconds
  before: thread count=z, dangling=z
  after: thread count=zDangling thread: )
r�sleeping_retry�listr	r
rr�environment_altered�
print_warningr)�original_values�
orig_count�orig_ndangling�timeout�_�dangling_threads�count�threads*       r
�threading_cleanuprs���!0��J��G�
�
#�
#�G�5�
9�� �	� 3� 3�4����� �����:�#'�G�������c�]�"�",��[��8H�I!�!&��{�3�7G�3H�2I�	K�L�
#����� 1�&��<�=�#rc�Fa�\P!S4V3Rl4pV#)z{Use this function when threads are being used.  This will
ensure that the threads are cleaned up even when the test fails.
c�T<�\4pS!V!\V!# \T!i;ir)rr)�args�key�funcs* �r
�	decorator�reap_threads.<locals>.decorator>s)������	$���;��s�#���s�#�s��')�	functools�wraps)r$r%sf r
�reap_threadsr):s(����_�_�T��$��$��rc#�"�Vf\Pp\P!4pRx�\P
!4p\P!VRR7F6p\P!4\P!4pWA8:gK5R#	\P
!4V,
pRXV,
RVR
RVRVR	2	p\V4h \P
!4p\P!TRR7F5p\P!4\P!4pYA8:gK5i	\P
!4T,
pRXT,
RTR
RTRTR	2	p\T4h;i5i)
a 
bpo-31234: Context manager to wait until all threads created in the with
statement exit.

Use _thread.count() to check if threads exited. Indirectly, wait until
threads exit the internal t_bootstrap() C function of the _thread module.

threading_setup() and threading_cleanup() are designed to emit a warning
if a test leaves running threads in the background. This context manager
is designed to cleanup threads started by the _thread.start_new_thread()
which doesn't allow to wait for thread exit, whereas thread.Thread has a
join() method.
NFrz!wait_threads() failed to cleanup z threads after rz seconds (count: z
, old count: �))	r�
SHORT_TIMEOUTrr�time�	monotonicr�
gc_collect�AssertionError)r�	old_count�
start_timerr�dt�msgs&      r
�wait_threads_exitr5Hs\������'�'����� �I�&�
��^�^�%�
��'�'��u�=�A���� ��N�N�$�E��!��	>����!�J�.�B�6�u�y�7H�6I�J$�$&�s�8�,�#�W�M�)��A�?�C�!��%�%���^�^�%�
��'�'��u�=�A���� ��N�N�$�E��!��	>����!�J�.�B�6�u�y�7H�6I�J$�$&�s�8�,�#�W�M�)��A�?�C�!��%�%�s+�*E>�C�AE>�AE>�AE;�9AE;�;E>c��Vf\PpVPV4VP4'dRVR
R2p\	V4hR#)z[Join a thread. Raise an AssertionError if the thread is still alive
after timeout seconds.
Nzfailed to join the thread in rz seconds)rr,�join�is_aliver0)rrr4s&& r
�join_threadr9ksM�����'�'��
�K�K���
�����-�g�c�]�(�C���S�!�!�rc#�"�^RIp\V4p.pVF$pVP4VP	V4K&	Rx�T'dT!4\P!4p\^^4F�pT^<,
pTF8pTP\T\P!4,
R44K:	TUu.uFqDP4'gKTNK	ppT'gM9\
P'gK�\R\T4T3,4K�	TUu.uFqDP4'gKTNK	ppT'd?Te TP\ P"4\%R\T4,4hR# \dRpEL�i;i \
P'd'\R\T4\T43,4h;iuupiuupi TUu.uFqDP4'gKTNK	MuupippT'd?Te TP\ P"4\%R\T4,4hi;i T'dT!4\P!4p\^^4F�pT^<,
pTF8pTP\T\P!4,
R44K:	TUu.uFqDP4'gKTNK	MuupippT'gM9\
P'gK�\R\T4T3,4K�	TUu.uFqDP4'gKTNK	MuupippT'd?Te TP\ P"4\%R\T4,4hi TUu.uFqDP4'gKTNK	MuupippT'd?Te TP\ P"4\%R\T4,4hi;i;i5i)rNz/Can't start %d threads, only %d threads startedg{�G�z�?z7Unable to join %d threads during a period of %d minuteszUnable to join %d threads)�faulthandler�ImportErrorr�start�appendr�verbose�printrr-r.�ranger7�maxr8�dump_traceback�sys�stdoutr0)�threads�unlockr;�started�t�endtimers&&     r
�
start_threadsrKwsD������7�m�G��G�Q�	������	����q�!��	�	Q�����n�n�&�G� ��B�<���2�
�� �A��F�F�3�w����)9�9�4�@�A�!�&-�>�g�����1�1�g��>����?�?�?��'�*-�g�,��)@�A�B�(�#*�:�'�Q�Z�Z�\�q�q�'�G�:���+� �/�/��
�
�;�$�%@�3�w�<�%O�P�P���C������	������G��7�|�S��\�2�3�4���?��;��'�:�'�Q�Z�Z�\�q�q�'��:�G�:���+� �/�/��
�
�;�$�%@�3�w�<�%O�P�P���!	Q�����n�n�&�G� ��B�<���2�
�� �A��F�F�3�w����)9�9�4�@�A�!�&-�>�g�����1�1�g��>��>����?�?�?��'�*-�g�,��)@�A�B�(�#*�:�'�Q�Z�Z�\�q�q�'��:�G�:���+� �/�/��
�
�;�$�%@�3�w�<�%O�P�P���#*�:�'�Q�Z�Z�\�q�q�'��:�G�:���+� �/�/��
�
�;�$�%@�3�w�<�%O�P�P��s�Q�F�
Q�*F/�I4�A>G;�G1� G1�&G;�
!G;�+Q�/G6�G6�A
Q�
F,�(Q�+F,�,Q�/?G.�.I4�1G;�6Q�;I1�H#�H#�"AI1�1Q�4Q�6A>O�4L
�L
�%O�!O�!Q�%N�N�AQ�Q�O>�7O>�=AQ�Q�Qc�<a�]tRt^�toRtRtRtRtRtRt	Vt
R#)�catch_threading_exceptiona�
Context manager catching threading.Thread exception using
threading.excepthook.

Attributes set when an exception is caught:

* exc_type
* exc_value
* exc_traceback
* thread

See threading.excepthook() documentation for these attributes.

These attributes are deleted at the context manager exit.

Usage:

    with threading_helper.catch_threading_exception() as cm:
        # code spawning a thread which raises an exception
        ...

        # check the thread exception, use cm attributes:
        # exc_type, exc_value, exc_traceback, thread
        ...

    # exc_type, exc_value, exc_traceback, thread attributes of cm no longer
    # exists at this point
    # (to avoid reference cycles)
c�L�RVnRVnRVnRVnRVnR#r)�exc_type�	exc_value�
exc_tracebackr�	_old_hook��selfs&r
�__init__�"catch_threading_exception.__init__�s&����
����!��������rc��VPVnVPVnVPVnVPVnR#r)rOrPrQr)rTr"s&&r
�_hook�catch_threading_exception._hook�s1���
�
��
������!�/�/����k�k��rc�Z�\PVnVP\nV#r)r	�
excepthookrRrXrSs&r
�	__enter__�#catch_threading_exception.__enter__�s ��"�-�-���#�z�z�	���rc�@�VP\nV=V=V=V=R#r)rRr	r[rOrPrQr)rT�exc_infos&*r
�__exit__�"catch_threading_exception.__exit__�s#��#�~�~�	���M��N����Kr)rRrQrOrPrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rUrXr\r`�__static_attributes__�__classdictcell__)�
__classdict__s@r
rMrM�s#�����<�"��
�rrMc�$�V^8�dQhR\/#)��return)�bool)�formats"r
�__annotate__ro�s����4�rc��\PR8Xd\PP#\PR8XdR#R#)a]Detect whether Python can start new threads.

Some WebAssembly platforms do not provide a working pthread
implementation. Thread support is stubbed and any attempt
to create a new thread fails.

- wasm32-wasi does not have threading.
- wasm32-emscripten can be compiled with or without pthread
  support (-s USE_PTHREADS / __EMSCRIPTEN_PTHREADS__).
�
emscripten�wasiFT)rD�platform�_emscripten_info�pthreadsrrr
�_can_start_threadrv�s6���|�|�|�#��#�#�,�,�,�	����	��r�moduleFc��RpV'd%\'g\P!V4hR#\P!\V4#)z~Skip tests or modules that require working threading.

Can be used as a function/class decorator or to skip an entire module.
zrequires threading supportN)�can_start_thread�unittest�SkipTest�
skipUnless)rwr4s$ r
�requires_working_threadingr}�s>��
'�C�
����#�#�C�(�(� ��"�"�#3�S�9�9rc�a	�^RIHpVf\V4p\W4'gV.V,p\V4V8XgQh\P
!V4o	V	3Rlp\
4;_uu_4pVUu.uFp\P!WW.VO5VR7NK!	pp\V4;_uu_4RRR4VPe
VPhRRR4R#uupi +'giL:;i +'giR#;i)z�
Run the worker function(s) concurrently in multiple threads.

If `worker_func` is a single callable, it is used for all threads.
If it is a list of callables, each callable is used for one thread.
)�IterableNc�8<�SP4V!V/VBR#r)�wait)r$r"�kwargs�barriers&*,�r
�wrapper_func�&run_concurrently.<locals>.wrapper_funcs��������d��f�r)�targetr"r�)
�collections.abcrr�
isinstancer	�BarrierrM�ThreadrKrP)
�worker_func�nthreadsr"r�rr��cmr$�workersr�s
&&&&     @r
�run_concurrentlyr��s����)����{�#���k�,�,�"�m�h�.���{��x�'�'�'�����)�G��

#�	$�	$��$�
�#��
���L�}�t�}�V�T�#�	�
��7�
#�
#��$��<�<�#��,�,��$�
%�	$��
�$�
#��
%�	$�	$�s6�2C8�7%C �C8�1C%	�3"C8� C8�%C5
�0C8�8D		rr)r�
contextlibr'rDr	r-rz�testrrrr)�contextmanagerr5r9rKrMrvryr}r�rrr
�<module>r�s������
�����6�>�<����&��&�D	"����'Q��'Q�T6�6�r�&%�&��
:��
:�,0�b�� r

Youez - 2016 - github.com/yon3zu
LinuXploit