name all ze threads

This commit is contained in:
blitzman
2017-01-28 17:46:59 -05:00
parent b3eb4f35cd
commit a76eef01de
7 changed files with 24 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ logger = logging.getLogger(__name__)
class PrefetchThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.name = "Prefetch"
def run(self):
# We're a daemon thread, as such, interpreter might get shut down while we do stuff
# Make sure we don't throw tracebacks to console
@@ -40,6 +44,7 @@ class PrefetchThread(threading.Thread):
prefetch = PrefetchThread()
prefetch.daemon = True
prefetch.start()
########