$27 GRAYBYTE WORDPRESS FILE MANAGER $40

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/asyncio/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/asyncio/__pycache__//queues.cpython-34.pyc
�
j f��@sdZdddddgZddlZddlZdd	lmZdd
lmZddlmZddlmZdd
l	m
Z
Gdd�de�ZGdd�de�Z
Gdd�d�ZGdd�de�ZGdd�de�Zejs
eZejd�ndS)ZQueues�Queue�
PriorityQueue�	LifoQueue�	QueueFull�
QueueEmpty�N�)�compat)�events)�futures)�locks)�	coroutinec@seZdZdZdS)rz]Exception raised when Queue.get_nowait() is called on a Queue object
    which is empty.
    N)�__name__�
__module__�__qualname__�__doc__�rr�3/opt/alt/python34/lib64/python3.4/asyncio/queues.pyrsc@seZdZdZdS)rzgException raised when the Queue.put_nowait() method is called on a Queue
    object which is full.
    N)r
rrrrrrrrsc@seZdZdZddddd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Z	dd�Z
dd�Zdd�Ze
dd��Zdd�Zdd�Zedd��Zdd �Zed!d"��Zd#d$�Zd%d&�Zed'd(��ZdS))raA queue, useful for coordinating producer and consumer coroutines.

    If maxsize is less than or equal to zero, the queue size is infinite. If it
    is an integer greater than 0, then "yield from put()" will block when the
    queue reaches maxsize, until an item is removed by get().

    Unlike the standard library Queue, you can reliably know this Queue's size
    with qsize(), since your single-threaded asyncio application won't be
    interrupted between calling qsize() and doing an operation on the Queue.
    r�loopNcCs�|dkrtj�|_n	||_||_tj�|_tj�|_d|_t	j
d|j�|_|jj�|j
|�dS)Nrr)r	Zget_event_loop�_loop�_maxsize�collections�deque�_getters�_putters�_unfinished_tasksrZEvent�	_finished�set�_init)�self�maxsizerrrr�__init__)s			
zQueue.__init__cCstj�|_dS)N)rr�_queue)rrrrrr;szQueue._initcCs
|jj�S)N)r!�popleft)rrrr�_get>sz
Queue._getcCs|jj|�dS)N)r!�append)r�itemrrr�_putAsz
Queue._putcCs:x3|r5|j�}|j�s|jd�PqqWdS)N)r"�doneZ
set_result)r�waitersZwaiterrrr�_wakeup_nextFs
	
zQueue._wakeup_nextcCs(djt|�jt|�|j��S)Nz<{} at {:#x} {}>)�format�typer
�id�_format)rrrr�__repr__NszQueue.__repr__cCsdjt|�j|j��S)Nz<{} {}>)r*r+r
r-)rrrr�__str__Rsz
Queue.__str__cCs�dj|j�}t|dd�rC|djt|j��7}n|jrk|djt|j��7}n|jr�|djt|j��7}n|jr�|dj|j�7}n|S)Nzmaxsize={!r}r!z _queue={!r}z
 _getters[{}]z
 _putters[{}]z	 tasks={})	r*r�getattr�listr!r�lenrr)r�resultrrrr-Us			z
Queue._formatcCs
t|j�S)zNumber of items in the queue.)r2r!)rrrr�qsizeaszQueue.qsizecCs|jS)z%Number of items allowed in the queue.)r)rrrrresz
Queue.maxsizecCs|jS)z3Return True if the queue is empty, False otherwise.)r!)rrrr�emptyjszQueue.emptycCs*|jdkrdS|j�|jkSdS)z�Return True if there are maxsize items in the queue.

        Note: if the Queue was initialized with maxsize=0 (the default),
        then full() is never True.
        rFN)rr4)rrrr�fullnsz
Queue.fullc	cs�x�|j�r�tjd|j�}|jj|�y
|DdHWq|j�|j�r~|j�r~|j|j�n�YqXqW|j	|�S)z�Put an item into the queue.

        Put an item into the queue. If the queue is full, wait until a free
        slot is available before adding item.

        This method is a coroutine.
        rN)
r6r
�Futurerrr$�cancel�	cancelledr)�
put_nowait)rr%Zputterrrr�putys	

z	Queue.putcCsR|j�rt�n|j|�|jd7_|jj�|j|j�dS)zyPut an item into the queue without blocking.

        If no free slot is immediately available, raise QueueFull.
        rN)r6rr&rr�clearr)r)rr%rrrr:�s	

zQueue.put_nowaitc	cs�x�|j�r�tjd|j�}|jj|�y
|DdHWq|j�|j�r~|j�r~|j|j�n�YqXqW|j	�S)z�Remove and return an item from the queue.

        If queue is empty, wait until an item is available.

        This method is a coroutine.
        rN)
r5r
r7rrr$r8r9r)�
get_nowait)r�getterrrr�get�s

z	Queue.getcCs5|j�rt�n|j�}|j|j�|S)z�Remove and return an item from the queue.

        Return an item if one is immediately available, else raise QueueEmpty.
        )r5rr#r)r)rr%rrrr=�s
	zQueue.get_nowaitcCsP|jdkrtd��n|jd8_|jdkrL|jj�ndS)a$Indicate that a formerly enqueued task is complete.

        Used by queue consumers. 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 ValueError if called more times than there were items placed in
        the queue.
        rz!task_done() called too many timesrN)r�
ValueErrorrr)rrrr�	task_done�s
zQueue.task_doneccs(|jdkr$|jj�DdHndS)aBlock 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 calls task_done() to
        indicate that the item was retrieved and all work on it is complete.
        When the count of unfinished tasks drops to zero, join() unblocks.
        rN)rr�wait)rrrr�join�s	z
Queue.join)r
rrrr rr#r&r)r.r/r-r4�propertyrr5r6rr;r:r?r=rArCrrrrrs&
c@sFeZdZdZdd�Zejdd�Zejdd�Z	dS)	rz�A subclass of Queue; retrieves entries in priority order (lowest first).

    Entries are typically tuples of the form: (priority number, data).
    cCs
g|_dS)N)r!)rrrrrr�szPriorityQueue._initcCs||j|�dS)N)r!)rr%�heappushrrrr&�szPriorityQueue._putcCs
||j�S)N)r!)r�heappoprrrr#�szPriorityQueue._getN)
r
rrrr�heapqrEr&rFr#rrrrr�sc@s:eZdZdZdd�Zdd�Zdd�ZdS)	rzEA subclass of Queue that retrieves most recently added entries first.cCs
g|_dS)N)r!)rrrrrr�szLifoQueue._initcCs|jj|�dS)N)r!r$)rr%rrrr&�szLifoQueue._putcCs
|jj�S)N)r!�pop)rrrrr#�szLifoQueue._getN)r
rrrrr&r#rrrrr�s�
JoinableQueue)r�__all__rrG�rr	r
rZ
coroutinesr�	ExceptionrrrrrZPY35rIr$rrrr�<module>s �
	


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
__init__.cpython-34.pyc
0.85 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.85 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
base_events.cpython-34.pyc
37.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
base_events.cpython-34.pyo
36.948 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
base_subprocess.cpython-34.pyc
9.591 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
base_subprocess.cpython-34.pyo
9.469 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
compat.cpython-34.pyc
0.733 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
compat.cpython-34.pyo
0.733 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
constants.cpython-34.pyc
0.236 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
constants.cpython-34.pyo
0.236 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
coroutines.cpython-34.pyc
8.498 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
coroutines.cpython-34.pyo
8.368 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
events.cpython-34.pyc
23.621 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
events.cpython-34.pyo
23.417 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
futures.cpython-34.pyc
15.293 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
futures.cpython-34.pyo
15.025 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
locks.cpython-34.pyc
15.329 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
locks.cpython-34.pyo
15.329 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
log.cpython-34.pyc
0.238 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
log.cpython-34.pyo
0.238 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
proactor_events.cpython-34.pyc
17.587 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
proactor_events.cpython-34.pyo
17.347 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
protocols.cpython-34.pyc
5.948 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
protocols.cpython-34.pyo
5.948 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
queues.cpython-34.pyc
8.722 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
queues.cpython-34.pyo
8.722 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
selector_events.cpython-34.pyc
30.271 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
selector_events.cpython-34.pyo
30.208 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sslproto.cpython-34.pyc
20.805 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
sslproto.cpython-34.pyo
20.56 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
streams.cpython-34.pyc
20.356 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
streams.cpython-34.pyo
20.008 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
subprocess.cpython-34.pyc
6.984 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
subprocess.cpython-34.pyo
6.949 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tasks.cpython-34.pyc
22.315 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tasks.cpython-34.pyo
22.116 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_utils.cpython-34.pyc
15.955 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
test_utils.cpython-34.pyo
15.558 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
transports.cpython-34.pyc
11.878 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
transports.cpython-34.pyo
11.843 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
unix_events.cpython-34.pyc
30.643 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
unix_events.cpython-34.pyo
30.241 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
windows_events.cpython-34.pyc
22.762 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
windows_events.cpython-34.pyo
22.762 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
windows_utils.cpython-34.pyc
5.804 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
windows_utils.cpython-34.pyo
5.704 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF