No maximum size due to possible deadlocks.

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3195 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2006-05-16 16:14:42 +00:00
parent e8bf93bd90
commit 7c8ab1b6f7

View file

@ -35,11 +35,13 @@ class UrlQueue (Queue.Queue):
from the Python 2.5 Subversion repository.
"""
def __init__ (self, maxsize=0):
def __init__ (self):
"""
Initialize the queue state and task counters.
"""
Queue.Queue.__init__(self, maxsize=maxsize)
# Note: don't put a maximum size on the queue since it would
# lead to deadlocks when all worker threads called put().
Queue.Queue.__init__(self)
self.all_tasks_done = threading.Condition(self.mutex)
self.unfinished_tasks = 0
self.finished_tasks = 0