mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 15:44:44 +00:00
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:
parent
e8bf93bd90
commit
7c8ab1b6f7
1 changed files with 4 additions and 2 deletions
6
linkcheck/cache/urlqueue.py
vendored
6
linkcheck/cache/urlqueue.py
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue