|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/task/21573/root/proc/21572/root/usr/lib64/python2.4/ |
Upload File : |
mς
=5Dc @ sr d Z d k l Z d k l Z d d d g Z d e f d YZ d e f d YZ d f d YZ d S(
s' A multi-producer, multi-consumer queue.( s time( s dequet Emptyt Fullt Queuec B s t Z d Z RS( s4 Exception raised by Queue.get(block=0)/get_nowait().( t __name__t
__module__t __doc__( ( ( t /usr/lib64/python2.4/Queue.pyR s c B s t Z d Z RS( s4 Exception raised by Queue.put(block=0)/put_nowait().( R R R ( ( ( R R s c B s t Z d d Z d Z d Z d Z e d d Z d Z e d d Z
d Z d
Z d Z
d Z d
Z d Z d Z RS( Ni c C sv y
d k } Wn t j
o d k } n X| i | | i | _ | i | i | _ | i | i | _
d S( sv Initialize a queue object with a given maximum size.
If maxsize is <= 0, the queue size is infinite.
N( t threadingt ImportErrort dummy_threadingt selft _initt maxsizet Lockt mutext Conditiont not_emptyt not_full( R
R R ( ( R t __init__ s
c C s* | i i | i } | i i | S( s9 Return the approximate size of the queue (not reliable!).N( R
R t acquiret _qsizet nt release( R
R ( ( R t qsize' s
c C s* | i i | i } | i i | S( sC Return True if the queue is empty, False otherwise (not reliable!).N( R
R R t _emptyR R ( R
R ( ( R t empty. s
c C s* | i i | i } | i i | S( sB Return True if the queue is full, False otherwise (not reliable!).N( R
R R t _fullR R ( R
R ( ( R t full5 s
c C s | i i zζ | p | i o
t qΨ n§ | d j o&