Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/Queue.pyc |
³ò h”Rc @ sx d Z d d k l Z d d k l Z d d d g Z d e f d „ ƒ YZ d e f d „ ƒ YZ d d d „ ƒ YZ d S( s' A multi-producer, multi-consumer queue.iÿÿÿÿ( t time( t dequet Emptyt Fullt Queuec B s e Z d Z RS( s4 Exception raised by Queue.get(block=0)/get_nowait().( t __name__t __module__t __doc__( ( ( s! /usr/local/lib/python2.5/Queue.pyR s c B s e Z d Z RS( s4 Exception raised by Queue.put(block=0)/put_nowait().( R R R ( ( ( s! /usr/local/lib/python2.5/Queue.pyR s c B s e Z d Z d d „ Z d „ Z 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( sj Create a queue object with a given maximum size. If maxsize is <= 0, the queue size is infinite. i c C sš y d d k } Wn t j o d d k } n X| i | ƒ | i ƒ | _ | i | i ƒ | _ | i | i ƒ | _ | i | i ƒ | _ d | _ d S( Niÿÿÿÿi ( t threadingt ImportErrort dummy_threadingt _initt Lockt mutext Conditiont not_emptyt not_fullt all_tasks_donet unfinished_tasks( t selft maxsizeR ( ( s! /usr/local/lib/python2.5/Queue.pyt __init__ s c C sw | i i ƒ zU | i d } | d j o. | d j o t d ƒ ‚ n | i i ƒ n | | _ Wd | i i ƒ Xd S( s. 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. i i s! task_done() called too many timesN( R t acquireR t ValueErrort notifyAllt release( R t unfinished( ( s! /usr/local/lib/python2.5/Queue.pyt task_done+ s c C sE | i i ƒ z# x | i o | i i ƒ q WWd | i i ƒ Xd S( sƒ 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( R R R t waitR ( R ( ( s! /usr/local/lib/python2.5/Queue.pyt joinD s c C s* | i i ƒ | i ƒ } | i i ƒ | S( s9 Return the approximate size of the queue (not reliable!).( R R t _qsizeR ( R t n( ( s! /usr/local/lib/python2.5/Queue.pyt qsizeT s c C s* | i i ƒ | i ƒ } | i i ƒ | S( sC Return True if the queue is empty, False otherwise (not reliable!).( R R t _emptyR ( R R ( ( s! /usr/local/lib/python2.5/Queue.pyt empty[ s c C s* | i i ƒ | i ƒ } | i i ƒ | S( sB Return True if the queue is full, False otherwise (not reliable!).( R R t _fullR ( R R ( ( s! /usr/local/lib/python2.5/Queue.pyt fullb s c C s | i i ƒ zõ | p | i ƒ o t ‚ qØ n§ | d j o&