3 \��@stdddddddgZdZeZifd d�Zd d�Zd d�Zd d�Zddd�Zdd�Z Gdd�de �Z da da dd�Zd S)�error�start_new_thread�exit� get_ident� allocate_lock�interrupt_main�LockType��c Cs�t|�tt��krtd��t|�tt��kr4td��day|||�Wn.tk rZYnddl}|j�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�%/usr/lib64/python3.6/_dummy_thread.pyrs cCst�dS)N)rrrrrr=scCsdS)N������rrrrrrAscCst�S)N)rrrrrrJsNcCs|dk rtd��dS)Nz'setting thread stack size not supportedr )r)�sizerrr� stack_sizeNsrcCst�S)N)rrrrr� _set_sentinelTsrc@sBeZdZdd�Zddd�ZeZdd�Zd d �Zd d �Zd d�Z dS)rcCs d|_dS)NF)� locked_status)�selfrrr�__init__cszLockType.__init__NrcCsH|dks |rd|_dS|js&d|_dS|dkr@ddl}|j|�dSdS)NTr F)r�timeZsleep)rZwaitflagZtimeoutr!rrr�acquirefs  zLockType.acquirecCs |j�dS)N)�release)r�typ�val�tbrrr�__exit__�szLockType.__exit__cCs|js t�d|_dS)NFT)rr)rrrrr#�szLockType.releasecCs|jS)N)r)rrrr�locked�szLockType.lockedcCs*d|jr dnd|jj|jjtt|��fS)Nz<%s %s.%s object at %s>r(Zunlocked)r� __class__� __module__� __qualname__�hex�id)rrrr�__repr__�s  zLockType.__repr__r)Nr) �__name__r*r+r r"� __enter__r'r#r(r.rrrrrXs   FTcCstr t�ndadS)NT)rrrrrrrr�sl)N)�__all__� TIMEOUT_MAX� RuntimeErrorrrrrrrr�objectrrrrrrrr�s    @