⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.24
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
python311
/
lib64
/
python3.11
/
__pycache__
/
View File Name :
queue.cpython-311.opt-1.pyc
@ J d Z ddlZddlZddlmZ ddlmZmZ ddlm Z ddl mZ n # e$ r dZY nw xY wg dZ ddl mZ n# e$ r G d d e ZY nw xY w G d de Z G d d Z G d de Z G d de Z G d d ZeeZdS dS )z'A multi-producer, multi-consumer queue. N)deque)heappushheappop) monotonic)SimpleQueue)EmptyFullQueue PriorityQueue LifoQueuer )r c e Zd ZdZdS )r z4Exception raised by Queue.get(block=0)/get_nowait().N__name__ __module____qualname____doc__ ,/opt/alt/python311/lib64/python3.11/queue.pyr r s >>r r c e Zd ZdZdS )r z4Exception raised by Queue.put(block=0)/put_nowait().Nr r r r r r s ::Dr r c e Zd ZdZddZd Zd Zd Zd Zd Z ddZ ddZd Zd Z d Zd Zd Zd Z eej Zd S )r zjCreate a queue object with a given maximum size. If maxsize is <= 0, the queue size is infinite. r c 0 || _ | | t j | _ t j | j | _ t j | j | _ t j | j | _ d| _ d S Nr ) maxsize_init threadingLockmutex Condition not_emptynot_fullall_tasks_doneunfinished_tasksselfr s r __init__zQueue.__init__" s} 7 ^%% #,TZ88 "+DJ77 (1$*== !r c | j 5 | j dz }|dk r.|dk rt d | j || _ ddd dS # 1 swxY w Y dS )a. Indicate that a formerly enqueued task is complete. Used by Queue consumer threads. For each get() used to fetch a task, a subsequent call to task_done() tells the queue that the processing on the task is complete. If a join() is currently blocking, it will resume when all items have been processed (meaning that a task_done() call was received for every item that had been put() into the queue). Raises a ValueError if called more times than there were items placed in the queue. r z!task_done() called too many timesN)r" r# ValueError notify_all)r% unfinisheds r task_donezQueue.task_done9 s / /.2JQ>>$%HIII#..000$.D! / / / / / / / / / / / / / / / / / /s AAA"Ac | j 5 | j r | j | j ddd dS # 1 swxY w Y dS )a Blocks until all items in the Queue have been gotten and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer thread calls task_done() to indicate the item was retrieved and all work on it is complete. When the count of unfinished tasks drops to zero, join() unblocks. N)r" r# waitr% s r joinz Queue.joinO s + +' +#((*** ' + + + + + + + + + + + + + + + + + + +s (=AAc l | j 5 | cddd S # 1 swxY w Y dS )9Return the approximate size of the queue (not reliable!).Nr _qsizer/ s r qsizezQueue.qsize\ sy Z ! !;;== ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !s )--c n | j 5 | cddd S # 1 swxY w Y dS )a Return True if the queue is empty, False otherwise (not reliable!). This method is likely to be removed at some point. Use qsize() == 0 as a direct substitute, but be aware that either approach risks a race condition where a queue can grow before the result of empty() or qsize() can be used. To create code that needs to wait for all queued tasks to be completed, the preferred technique is to use the join() method. Nr3 r/ s r emptyzQueue.emptya s~ Z % %{{}}$ % % % % % % % % % % % % % % % % % %s *..c | j 5 d| j cxk o| k nc cddd S # 1 swxY w Y dS )aO Return True if the queue is full, False otherwise (not reliable!). This method is likely to be removed at some point. Use qsize() >= n as a direct substitute, but be aware that either approach risks a race condition where a queue can shrink before the result of full() or qsize() can be used. r N)r r r4 r/ s r fullz Queue.fullo s Z 5 5t|4444t{{}}4444 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5s '<A A TNc | j 5 | j dk r|s%| | j k rt n|T| | j k r6| j | | j k 6n|dk rt d t |z }| | j k rU|t z }|dk rt | j | | | j k U| | | xj dz c_ | j ddd dS # 1 swxY w Y dS )a Put an item into the queue. If optional args 'block' is true and 'timeout' is None (the default), block if necessary until a free slot is available. If 'timeout' is a non-negative number, it blocks at most 'timeout' seconds and raises the Full exception if no free slot was available within that time. Otherwise ('block' is false), put an item on the queue if a free slot is immediately available, else raise the Full exception ('timeout' is ignored in that case). r N''timeout' must be a non-negative number r( )r! r r4 r r. r) time_putr# r notify)r% itemblocktimeoutendtime remainings r putz Queue.putz s ] $ $|a 6{{}}44" 5_++--4<77 **,,, ++--4<77q[[$%NOOO"ffw.G++--4<77$+dff$4 $++"&J **9555 ++--4<77 IIdOOO!!Q&!!N!!###' $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $s E E55E9<E9c r | j 5 |s| st n|B| s-| j | -n|dk rt d t |z }| sL|t z }|dk rt | j | | L| }| j |cddd S # 1 swxY w Y dS ) Remove and return an item from the queue. If optional args 'block' is true and 'timeout' is None (the default), block if necessary until an item is available. If 'timeout' is a non-negative number, it blocks at most 'timeout' seconds and raises the Empty exception if no item was available within that time. Otherwise ('block' is false), return an item if one is immediately available, else raise the Empty exception ('timeout' is ignored in that case). Nr r; r<