MCPcopy Index your code
hub / github.com/python/cpython / send_signals

Method send_signals

Lib/test/test_threadsignals.py:201–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 lock.acquire(timeout=0.5)
200 self.end = time.monotonic()
201 def send_signals():
202 for _ in range(40):
203 time.sleep(0.02)
204 os.kill(process_pid, signal.SIGUSR1)
205 done.release()
206
207 with threading_helper.wait_threads_exit():
208 # Send the signals from the non-main thread, since the main thread

Callers

nothing calls this directly

Calls 3

sleepMethod · 0.45
killMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected