Change thread names

- not needed to have "Thread" in the name of a thread
This commit is contained in:
Peter Šurda 2017-07-10 07:05:50 +02:00
parent 4fce01e34a
commit f088e0ae21
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
5 changed files with 10 additions and 10 deletions

View File

@ -10,9 +10,9 @@ import state
class AddrThread(threading.Thread, StoppableThread): class AddrThread(threading.Thread, StoppableThread):
def __init__(self): def __init__(self):
threading.Thread.__init__(self, name="AddrThread") threading.Thread.__init__(self, name="AddrBroadcaster")
self.initStop() self.initStop()
self.name = "AddrThread" self.name = "AddrBroadcaster"
def run(self): def run(self):
while not state.shutdown: while not state.shutdown:

View File

@ -11,9 +11,9 @@ import state
class AnnounceThread(threading.Thread, StoppableThread): class AnnounceThread(threading.Thread, StoppableThread):
def __init__(self): def __init__(self):
threading.Thread.__init__(self, name="AnnounceThread") threading.Thread.__init__(self, name="Announcer")
self.initStop() self.initStop()
self.name = "AnnounceThread" self.name = "Announcer"
logger.info("init announce thread") logger.info("init announce thread")
def run(self): def run(self):

View File

@ -18,9 +18,9 @@ class DownloadThread(threading.Thread, StoppableThread):
requestExpires = 600 requestExpires = 600
def __init__(self): def __init__(self):
threading.Thread.__init__(self, name="DownloadThread") threading.Thread.__init__(self, name="Downloader")
self.initStop() self.initStop()
self.name = "DownloadThread" self.name = "Downloader"
logger.info("init download thread") logger.info("init download thread")
self.pending = {} self.pending = {}
self.lastCleaned = time.time() self.lastCleaned = time.time()

View File

@ -10,9 +10,9 @@ import state
class InvThread(threading.Thread, StoppableThread): class InvThread(threading.Thread, StoppableThread):
def __init__(self): def __init__(self):
threading.Thread.__init__(self, name="InvThread") threading.Thread.__init__(self, name="InvBroadcaster")
self.initStop() self.initStop()
self.name = "InvThread" self.name = "InvBroadcaster"
def run(self): def run(self):
while not state.shutdown: while not state.shutdown:

View File

@ -9,9 +9,9 @@ import state
class BMNetworkThread(threading.Thread, StoppableThread): class BMNetworkThread(threading.Thread, StoppableThread):
def __init__(self): def __init__(self):
threading.Thread.__init__(self, name="AsyncoreThread") threading.Thread.__init__(self, name="Asyncore")
self.initStop() self.initStop()
self.name = "AsyncoreThread" self.name = "Asyncore"
logger.info("init asyncore thread") logger.info("init asyncore thread")
def run(self): def run(self):