Your IP : 3.23.101.75


Current Path : /opt/alt/python38/lib64/python3.8/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/__pycache__/_dummy_thread.cpython-38.opt-2.pyc

U

i�f��@s�ddddddddgZdZeZifd	d�Zd
d�Zdd�Zdd�Zddd�Zdd�Z	Gdd�de
�ZGdd�de�Zda
dadd�Zd
S)�error�start_new_thread�exit�	get_ident�
allocate_lock�interrupt_main�LockType�RLocklcCs�t|�tt��krtd��t|�tt��kr4td��daz|||�Wn.tk
rZYnddl}|��YnXdatr�dat	�dS)Nz2nd arg must be a tuplez3rd arg must be a dictF�T)
�type�tuple�	TypeError�dict�_main�
SystemExit�	traceback�	print_exc�
_interrupt�KeyboardInterrupt)Zfunction�args�kwargsr�r�2/opt/alt/python38/lib64/python3.8/_dummy_thread.pyrs 
cCst�dS�N)rrrrrr=scCsdS�N�rrrrrrAscCst�Sr�rrrrrrJsNcCs|dk	rtd��dS)Nz'setting thread stack size not supportedr	)r)�sizerrr�
stack_sizeNsrcCst�Srrrrrr�
_set_sentinelTsrc@sBeZdZdd�Zddd�ZeZdd�Zd	d
�Zdd�Zd
d�Z	dS)rcCs
d|_dS)NF��
locked_status��selfrrr�__init__cszLockType.__init__N���cCsH|dks|rd|_dS|js&d|_dS|dkr@ddl}|�|�dSdS)NTr	F)r �time�sleep)r"�waitflag�timeoutr%rrr�acquirefs
zLockType.acquirecCs|��dSr)�release)r"�typ�val�tbrrr�__exit__�szLockType.__exit__cCs|js
t�d|_dS)NFT)r rr!rrrr*�szLockType.releasecCs|jSrrr!rrr�locked�szLockType.lockedcCs*d|jrdnd|jj|jjtt|��fS)Nz<%s %s.%s object at %s>r/Zunlocked)r �	__class__�
__module__�__qualname__�hex�idr!rrr�__repr__�s
�zLockType.__repr__)Nr$)
�__name__r1r2r#r)�	__enter__r.r*r/r5rrrrrXs
	cs6eZdZ�fdd�Zd	�fdd�	Z�fdd�Z�ZS)
rcst���d|_dS)Nr	)�superr#�_levelsr!�r0rrr#�s
zRLock.__init__Nr$cs$t��||�}|r |jd7_|Sr)r8r)r9)r"r'r(r/r:rrr)�sz
RLock.acquirecs4|jdkrt�|jdkr"t���|jd8_dS)Nr	r)r9rr8r*r!r:rrr*�s



z
RLock.release)Nr$)r6r1r2r#r)r*�
__classcell__rrr:rr�sFTcCstr
t�ndadS)NT)rrrrrrrr�s)N)�__all__�TIMEOUT_MAX�RuntimeErrorrrrrrrr�objectrrrrrrrrr�<module>s"
� 	
@

?>