Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/keystoneauth1/__pycache__/_fair_semaphore.cpython-39.pyc
Ðазад
a s�h� � @ s: d dl Z d dlZd dlZd dlZd dlZG dd� d�ZdS )� Nc @ s� e Zd ZdZeje ed�dd�Zdd�dd�Z edd �d d�Z ed�dd �Zed�dd�Zejej e eje ejej dd�dd�ZdS )� FairSemaphorea� Semaphore class that notifies in order of request. We cannot use a normal Semaphore because it doesn't give any ordering, which could lead to a request starving. Instead, handle them in the order we receive them. :param int concurrency: How many concurrent threads can have the semaphore at once. :param float rate_delay: How long to wait between the start of each thread receiving the semaphore. )�concurrency� rate_delayc C s8 t �� | _|| _|r$d| _t�� | _|| _t � � | _ d S )Nr )� threading�Lock�_lock�_concurrency�_count�queue�Queue�_queue�_rate_delay�time� _rate_last_ts)�selfr r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/keystoneauth1/_fair_semaphore.py�__init__"