选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´iè,ã@südZddlZddlZddlmZddlmZmZddlm Zzddl m Z Wne ybdZ Yn0gd¢Z zddl mZWn"e yžGd d „d eƒZYn0Gd d „d eƒZGd d„dƒZGdd„deƒZGdd„deƒZGdd„dƒZe durøeZ dS)z'A multi-producer, multi-consumer queue.éN)Údeque)ÚheappushÚheappop)Ú monotonic)Ú SimpleQueue)ÚEmptyÚFullÚQueueÚ PriorityQueueÚ LifoQueuer)rc@seZdZdZdS)rz4Exception raised by Queue.get(block=0)/get_nowait().N©Ú__name__Ú __module__Ú __qualname__Ú__doc__©rrú/usr/lib64/python3.9/queue.pyrsrc@seZdZdZdS)rz4Exception raised by Queue.put(block=0)/put_nowait().Nr rrrrrsrc@s�eZdZdZd!dd„Zdd„Zdd„Zd d „Zd d „Zd d„Z d"dd„Z d#dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd „ZeejƒZdS)$r zjCreate a queue object with a given maximum size. If maxsize is <= 0, the queue size is infinite. rcCsN||_| |¡t ¡|_t |j¡|_t |j¡|_t |j¡|_d|_ dS©Nr) ÚmaxsizeÚ_initÚ threadingÚLockÚmutexÚ ConditionÚ not_emptyÚnot_fullÚall_tasks_doneÚunfinished_tasks©ÚselfrrrrÚ__init__"s  zQueue.__init__cCs\|j�B|jd}|dkr4|dkr*tdƒ‚|j ¡||_Wdƒn1sN0YdS)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. érz!task_done() called too many timesN)rrÚ ValueErrorÚ notify_all)rÚ unfinishedrrrÚ task_done9s  zQueue.task_donecCs<|j�"|jr|j ¡qWdƒn1s.0YdS)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)rrÚwait©rrrrÚjoinOs z Queue.joincCs2|j�| ¡WdƒS1s$0YdS)ú9Return the approximate size of the queue (not reliable!).N©rÚ_qsizer'rrrÚqsize\sz Queue.qsizecCs4|j�| ¡ WdƒS1s&0YdS)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. Nr*r'rrrÚemptyas z Queue.emptycCsH|j�.d|jko | ¡knWdƒS1s:0YdS)aOReturn 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. rN)rrr+r'rrrÚfullosz Queue.fullTNcCsà|j�Æ|jdkrœ|s*| ¡|jkrœt‚nr|durN| ¡|jkrœ|j ¡q2nN|dkr`tdƒ‚nr?rrrr@*sz_PySimpleQueue.put_nowaitcCs |jdd�SrArBr'rrrrC2sz_PySimpleQueue.get_nowaitcCst|jƒdkS)zCReturn True if the queue is empty, False otherwise (not reliable!).r©rGrSr'rrrr-:sz_PySimpleQueue.emptycCs t|jƒS)r)rXr'rrrr,>sz_PySimpleQueue.qsize)TN)TN)r rrrr r9r<r@rCr-r,rKrLrMrNrrrrrRs  rR)rrrLÚ collectionsrÚheapqrrr1rrSrÚ ImportErrorÚ__all__rÚ Exceptionrr r r rRrrrrÚs,     DC