mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-14 09:33:09 +00:00
specify thread name
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2613 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
781ad5fdc0
commit
3f6d2fa753
1 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ class Threader (object):
|
|||
"""
|
||||
self._reduce_threads()
|
||||
|
||||
def start_thread (self, func, args):
|
||||
def start_thread (self, func, args, name=None):
|
||||
"""
|
||||
Generate a new thread.
|
||||
"""
|
||||
|
|
@ -133,7 +133,7 @@ class Threader (object):
|
|||
func(*args)
|
||||
else:
|
||||
self._acquire()
|
||||
t = threading.Thread(None, func, None, args)
|
||||
t = threading.Thread(None, func, name, args)
|
||||
t.start()
|
||||
self.threads.append(t)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue