Lines Matching refs:threads
196 ALLOWED_TYPES = ('processes', 'manager', 'threads')
245 ALLOWED_TYPES = ('processes', 'threads')
248 if self.TYPE == 'threads':
262 if self.TYPE == 'threads':
301 if self.TYPE == "threads":
318 if cls.TYPE != 'threads':
323 if self.TYPE == "threads":
343 if self.TYPE == "threads":
392 if self.TYPE != 'threads':
409 if self.TYPE != 'threads':
422 if self.TYPE == 'threads':
451 if self.TYPE == 'threads':
568 if self.TYPE == "threads":
590 if self.TYPE == "threads":
622 if self.TYPE == 'threads':
677 if self.TYPE == 'threads':
719 # A child process should wait for non-daemonic threads to end
721 if self.TYPE == 'threads':
787 if self.TYPE == 'threads':
872 if self.TYPE == "threads":
902 if self.TYPE == 'threads':
1442 # start some threads/processes which will timeout
1468 # start some more threads/processes
1504 # start some threads/processes
1750 A bunch of threads.
1754 Construct a bunch of `n` threads running the same function `f`.
1755 If `wait_before_exit` is True, the threads won't terminate until
1767 threads = []
1772 threads.append(p)
1774 def finalize(threads):
1775 for p in threads:
1778 self._finalizer = weakref.finalize(self, finalize, threads)
1827 if self.TYPE == 'threads':
1931 # Wait until the other threads are all in the barrier.
1947 Test that a 'reset' on a barrier frees the waiting threads
2471 if self.TYPE == 'threads':
3104 ALLOWED_TYPES = ('processes', 'threads')
3403 ALLOWED_TYPES = ('processes', 'threads')
3451 ALLOWED_TYPES = ('processes', 'threads')
4460 threads = [threading.Thread(target=run_finalizers),
4462 with threading_helper.start_threads(threads):
5835 threads = set(threading._dangling) - set(cls.dangling[1])
5836 if threads:
5838 support.print_warning(f'Dangling threads: {threads}')
5839 threads = None
5929 TYPE = 'threads'
5955 ALL_TYPES = {'processes', 'threads', 'manager'}
6014 # pause a bit so we don't get warning about dangling threads/processes
6022 threads = set(threading._dangling) - set(dangling[1])
6023 if threads:
6026 support.print_warning(f'Dangling threads: {threads}')
6027 threads = None