def put (self, item):
        """Put an item into the queue.
        Block if necessary until a free slot is available.
        """
        with self.mutex:
            self._put(item)
            self.not_empty.notify()
def put ( self , item ) : with self . mutex : self . _put ( item ) self . not_empty . notify ( )
Put an item into the queue.
        Block if necessary until a free slot is available.