%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/liveregions.cpython-312.pyc |
� g f�c � � � d dl Z e j dd� d dlmZ d dlZd dlZd dlZd dlmZ ddlm Z ddlm Z dd lmZ dd lmZ ddlm Z ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ dZd ZdZdZdZdZdZ G d� d� Z G d� d� Zy)� N�Atspiz2.0)r )�GLib� )�cmdnames)�debug)� focus_manager)�keybindings)�messages)�input_event)�settings_manager)�AXCollection)�AXObject)�AXText���� � �- � c �: � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z y ) � PriorityQueuez� This class represents a thread **UNSAFE** priority queue where priority is determined by the given integer priority. The entries are also maintained in chronological order. TODO: experiment with Queue.Queue to make thread safe c � � g | _ y �N��queue��selfs �2/usr/lib/python3/dist-packages/orca/liveregions.py�__init__zPriorityQueue.__init__* s � ��� � c �p � t j | j |t j � ||f� y)zS Add a new element to the queue according to 1) priority and 2) timestamp. N)�bisect�insort_leftr �time)r �data�priority�objs r �enqueuezPriorityQueue.enqueue- s'