AlkantarClanX12
Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/ |
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/sched.cpython-310.opt-2.pyc |
o 6��f� � @ s� d dl Z d dlZd dlmZ d dlmZ d dlZd dl mZ dgZ edd�Z de j _d e j_d e j _de j_de j_d e j_e� ZG dd� d�ZdS )� N)� namedtuple)�count)� monotonic� scheduler�Eventz2time, priority, sequence, action, argument, kwargszaNumeric type compatible with the return value of the timefunc function passed to the constructor.zSEvents scheduled for the same time will be executed in the order of their priority.zbA continually increasing sequence number that separates events if time and priority are equal.z?Executing the event means executing action(*argument, **kwargs)zGargument is a sequence holding the positional arguments for the action.zDkwargs is a dictionary holding the keyword arguments for the action.c @ s^ e Zd Zeejfdd�Zdefdd�Zdefdd�Z dd � Z d d� Zdd d�Ze dd� �ZdS )r c C s* g | _ t�� | _|| _|| _t� | _d S �N)�_queue� threading�RLock�_lock�timefunc� delayfuncr �_sequence_generator)�selfr r � r �,/opt/alt/python310/lib64/python3.10/sched.py�__init__5 s zscheduler.__init__r c C s` |t u ri }| j� t||t| j�|||�}t�| j|� W d � |S 1 s)w Y |S r )� _sentinelr r �nextr �heapqZheappushr )r �time�priority�action�argument�kwargs�eventr r r �enterabs>