HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/lib/__pycache__/locking.cpython-310.pyc
o

;j��@sLddlZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZdS)
�Nc@seZdZdd�ZdS)�NeverExpirescCsdS)NF���selfrr�H/opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/lib/locking.py�expiredszNeverExpires.expiredN)�__name__�
__module__�__qualname__rrrrrrsrc@s,eZdZdZdd�Zedd��Zdd�ZdS)	�TimerzEA simple timer that will indicate when an expiration time has passed.cCs
||_dS)z:Create a timer that expires at `expiration` (UTC datetime)N)�
expiration)rrrrr�__init__s
zTimer.__init__cCs|tj�tjj�|�S)z7Return a timer that will expire after `elapsed` passes.)�datetime�now�timezone�utc)�cls�elapsedrrr�afters�zTimer.aftercCstj�tjj�|jkS�N)rrrrrrrrrrs
��z
Timer.expiredN)rr	r
�__doc__r
�classmethodrrrrrrr	s
rc@seZdZdZdS)�LockTimeoutzFAn exception when a lock could not be acquired before a timeout periodN)rr	r
rrrrrrsrc@s eZdZdZdd�Zdd�ZdS)�LockCheckerz;Keep track of the time and detect if a timeout has expired.cCs&||_|r
t�|�|_dSt�|_dSr)�
session_idrr�timerr)rr�timeoutrrrr
"szLockChecker.__init__cCs|j��r
tdt|���dS)Nz)Timeout acquiring lock for %(session_id)sF)rrr�varsrrrrr)s


�zLockChecker.expiredN)rr	r
rr
rrrrrr sr)r�objectrr�	Exceptionrrrrrr�<module>s