File: //proc/2/cwd/proc/self/root/usr/lib/python2.4/Queue.pyc
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/lib/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&