class_docstr: A pausable thread that simply runs a loop
docstr: Args:
      func: the function to run
docstr_tok: ["Args",":","func",":","the","function","to","run"]
code: def __init__(self, func, pausable=True):
      """
      Args:
          func: the function to run
      """
      super(LoopThread, self).__init__()
      self._func = func
      self._pausable = pausable
      if pausable:
          self._lock = threading.Lock()
      self.daemon = True
  
imports: import sys
  import atexit
  import bisect
  import multiprocessing
  import platform
  import signal
  import threading
  import weakref
  from contextlib import contextmanager
  import six
  from six.moves import queue
  import subprocess
  from .None import logger
  from .argtools import log_once
label_desc: Use image node_id 1 to create a new LoopThread object from inherited base classes: StoppableThread with example: obj = LoopThread(func, pausable)