Lines Matching refs:_state
161 self._state = RUN
183 self._worker_handler._state = RUN
193 self._task_handler._state = RUN
201 self._result_handler._state = RUN
301 if self._state != RUN:
331 if self._state != RUN:
361 if self._state != RUN:
380 if self._state != RUN:
411 while thread._state == RUN or (pool._cache and thread._state != TERMINATE):
427 if thread._state:
475 if thread._state:
476 assert thread._state == TERMINATE, "Thread not in TERMINATE"
491 while cache and thread._state != TERMINATE:
522 len(cache), thread._state)
540 if self._state == RUN:
541 self._state = CLOSE
542 self._worker_handler._state = CLOSE
546 self._state = TERMINATE
547 self._worker_handler._state = TERMINATE
552 if self._state == RUN:
554 elif self._state not in (CLOSE, TERMINATE):
577 worker_handler._state = TERMINATE
578 task_handler._state = TERMINATE
587 result_handler._state = TERMINATE