mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-28 01:54:42 +00:00
documentation
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2911 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
c9f5d1a0b1
commit
e3beb86ac1
1 changed files with 7 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue