AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/ |
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/sched.cpython-311.opt-2.pyc |
� c��f� � � � 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� � Z G d� 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 �f � e Zd Zeej fd�Zdefd�Zdefd�Z d� Z d� Zdd�Ze d � � � Zd S )r c � � g | _ t j � � | _ || _ || _ t � � | _ d S �N)�_queue� threading�RLock�_lock�timefunc� delayfuncr �_sequence_generator)�selfr r s �,/opt/alt/python311/lib64/python3.11/sched.py�__init__zscheduler.__init__5 s= � � �����_�&�&�� � �� �"���#(�7�7�� � � � � c �� � |t u ri }| j 5 t ||t | j � � |||� � }t j | j |� � d d d � � n# 1 swxY w Y |S r )� _sentinelr r �nextr �heapq�heappushr )r �time�priority�action�argument�kwargs�events r �enterabszscheduler.enterabs>