add StoppableThread

This commit is contained in:
Michael Davidsaver
2013-03-31 17:33:54 -04:00
parent 884b1b844c
commit 0f4e539fb0
2 changed files with 73 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ class IOScanListThread(IOScanListBlock):
return cls._worker
import hooks
T = Worker(max=cls.queuelength)
hooks.addHook('AtIocExit', T.stop)
hooks.addHook('AtIocExit', T.join)
T.start()
cls._worker = T
return T