HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.7/__pycache__/queue.cpython-37.pyc
B

{a_,@sdZddlZddlmZddlmZmZddlmZyddl	m
Z
Wnek
r\dZ
YnXddd	d
ddgZydd
l	m
Z
Wn$ek
rGdddeZ
YnXGdddeZGdd	d	ZGdd
d
eZGdddeZGdddZe
dkreZ
dS)z'A multi-producer, multi-consumer queue.N)deque)heappushheappop)	monotonic)SimpleQueueEmptyFullQueue
PriorityQueue	LifoQueuer)rc@seZdZdZdS)rz4Exception raised by Queue.get(block=0)/get_nowait().N)__name__
__module____qualname____doc__rr/usr/lib/python3.7/queue.pyrsc@seZdZdZdS)rz4Exception raised by Queue.put(block=0)/put_nowait().N)rr
rrrrrrrsc@seZdZdZd!ddZddZddZd	d
ZddZd
dZ	d"ddZ
d#ddZddZddZ
ddZddZddZdd 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	threadingZLockmutexZ	Condition	not_emptynot_fullall_tasks_doneunfinished_tasks)selfrrrr__init__!s

zQueue.__init__c	CsH|j8|jd}|dkr4|dkr*td|j||_WdQRXdS)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
ValueErrorZ
notify_all)rZ
unfinishedrrr	task_done8s

zQueue.task_donec	Cs,|jx|jr|jq
WWdQRXdS)aBlocks 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)rrwait)rrrrjoinNs	z
Queue.joinc	Cs|j
|SQRXdS)z9Return the approximate size of the queue (not reliable!).N)r_qsize)rrrrqsize[szQueue.qsizec	Cs|j|SQRXdS)aReturn 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.
        N)rr!)rrrrempty`szQueue.emptyc	Cs0|j d|jko |kSSQRXdS)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!)rrrrfullnsz
Queue.fullTNc	Cs|j|jdkr|s*||jkrtnz|dkrRxp||jkrN|jq4WnR|dkrdtdn@t|}x4||jkr|t}|dkrt|j|qpW|||jd7_|j	
WdQRXdS)aPut 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).
        rNz''timeout' must be a non-negative numbergr)rrr!rrrtime_putrrnotify)ritemblocktimeoutendtime	remainingrrrputys&




z	Queue.putc	Cs|j|s|stnn|dkr<xd|s8|jq$WnL|dkrNtdn:t|}x.|s|t}|dkrxt|j|qZW|}|j|SQRXdS)aRemove 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).
        Nrz''timeout' must be a non-negative numberg)	rr!rrrr%_getrr')rr)r*r+r,r(rrrgets$





z	Queue.getcCs|j|ddS)zPut an item into the queue without blocking.

        Only enqueue the item if a free slot is immediately available.
        Otherwise raise the Full exception.
        F)r))r-)rr(rrr
put_nowaitszQueue.put_nowaitcCs|jddS)zRemove and return an item from the queue without blocking.

        Only get an item if one is immediately available. Otherwise
        raise the Empty exception.
        F)r))r/)rrrr
get_nowaitszQueue.get_nowaitcCst|_dS)N)rqueue)rrrrrrszQueue._initcCs
t|jS)N)lenr2)rrrrr!szQueue._qsizecCs|j|dS)N)r2append)rr(rrrr&sz
Queue._putcCs
|jS)N)r2popleft)rrrrr.sz
Queue._get)r)TN)TN)rr
rrrrr r"r#r$r-r/r0r1rr!r&r.rrrrr	s


 

c@s0eZdZdZddZddZddZdd	Zd
S)r
zVariant of Queue that retrieves open entries in priority order (lowest first).

    Entries are typically tuples of the form:  (priority number, data).
    cCs
g|_dS)N)r2)rrrrrrszPriorityQueue._initcCs
t|jS)N)r3r2)rrrrr!szPriorityQueue._qsizecCst|j|dS)N)rr2)rr(rrrr&szPriorityQueue._putcCs
t|jS)N)rr2)rrrrr.szPriorityQueue._getN)rr
rrrr!r&r.rrrrr
s
c@s0eZdZdZddZddZddZdd	Zd
S)rzBVariant of Queue that retrieves most recently added entries first.cCs
g|_dS)N)r2)rrrrrrszLifoQueue._initcCs
t|jS)N)r3r2)rrrrr!szLifoQueue._qsizecCs|j|dS)N)r2r4)rr(rrrr&szLifoQueue._putcCs
|jS)N)r2pop)rrrrr.szLifoQueue._getN)rr
rrrr!r&r.rrrrrs
c@sLeZdZdZddZdddZddd	Zd
dZdd
ZddZ	ddZ
dS)_PySimpleQueuezYSimple, unbounded FIFO queue.

    This pure Python implementation is not reentrant.
    cCst|_td|_dS)Nr)r_queuerZ	Semaphore_count)rrrrr	sz_PySimpleQueue.__init__TNcCs|j||jdS)zPut the item on the queue.

        The optional 'block' and 'timeout' arguments are ignored, as this method
        never blocks.  They are provided for compatibility with the Queue class.
        N)r8r4r9release)rr(r)r*rrrr-
sz_PySimpleQueue.putcCs4|dk	r|dkrtd|j||s*t|jS)aRemove 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).
        Nrz''timeout' must be a non-negative number)rr9acquirerr8r5)rr)r*rrrr/s
z_PySimpleQueue.getcCs|j|ddS)zPut an item into the queue without blocking.

        This is exactly equivalent to `put(item)` and is only provided
        for compatibility with the Queue class.
        F)r))r-)rr(rrrr0'sz_PySimpleQueue.put_nowaitcCs|jddS)zRemove and return an item from the queue without blocking.

        Only get an item if one is immediately available. Otherwise
        raise the Empty exception.
        F)r))r/)rrrrr1/sz_PySimpleQueue.get_nowaitcCst|jdkS)zCReturn True if the queue is empty, False otherwise (not reliable!).r)r3r8)rrrrr#7sz_PySimpleQueue.emptycCs
t|jS)z9Return the approximate size of the queue (not reliable!).)r3r8)rrrrr";sz_PySimpleQueue.qsize)TN)TN)rr
rrrr-r/r0r1r#r"rrrrr7s
	
r7)rrcollectionsrheapqrrr%rr8rImportError__all__rAttributeError	Exceptionrr	r
rr7rrrr<module>s*
BA