Lines Matching refs:initializer
69 def _worker(executor_reference, work_queue, initializer, initargs):
70 if initializer is not None:
72 initializer(*initargs)
74 _base.LOGGER.critical('Exception in initializer:', exc_info=True)
124 initializer=None, initargs=()):
131 initializer: A callable used to initialize worker threads.
132 initargs: A tuple of arguments to pass to the initializer.
146 if initializer is not None and not callable(initializer):
147 raise TypeError("initializer must be a callable")
158 self._initializer = initializer
205 self._broken = ('A thread initializer failed, the thread pool '