from threading import Lock
from threading import Thread as Process
from multiprocessing import Process, Queue, Value, Lock
from signal import signal, SIGTERM, SIG_DFL
raise ProcessHaltedError('Child process is not alive')
# For some reason process.terminate() sometimes may not seem to work.
# This is a workaround. Seems it is no longer needed with
- # self.process.join(), just keeping it here
+ # self.process.join(), just keeping it here for multiprocessing.
+ # For threading this is the only way to terminate thread (use old
+ # implementation based on sequence of timers?)
self.interval.value = -1.0
+ # Threads do not have .terminate method