documentation

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2911 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-10-17 12:18:18 +00:00
parent c9f5d1a0b1
commit e3beb86ac1

View file

@ -71,6 +71,13 @@ def print_duration (duration):
class Consumer (object):
"""
Consume URLs from the URL queue in a thread-safe manner.
All public methods are synchronized, with the exception of
abort() which calls locking methods itself, and check_url()
which just spawns another checker thread.
Additionally all public methods of the Cache() object
are included as synchronized proxy functions via __getattr__().
The synchronization uses a global variable _lock defined above.
"""
def __init__ (self, config, cache):