Example #1
0
 def __init__(self, shutdown_timeout=DEFAULT_TIMEOUT):
     check_threads()
     self._queue = Queue(-1)
     self._lock = threading.Lock()
     self._thread = None
     self._thread_for_pid = None
     self.options = {'shutdown_timeout': shutdown_timeout}
     self.start()
Example #2
0
 def __init__(self, shutdown_timeout=DEFAULT_TIMEOUT):
     check_threads()
     self._queue = Queue(-1)
     self._lock = threading.Lock()
     self._thread = None
     self._thread_for_pid = None
     self.options = {
         'shutdown_timeout': shutdown_timeout,
     }
     self.start()