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

Method test_joinable_not_joined

Lib/test/test_thread.py:203–213  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 handle.join()
202
203 def test_joinable_not_joined(self):
204 handle_destroyed = thread.allocate_lock()
205 handle_destroyed.acquire()
206
207 def task():
208 handle_destroyed.acquire()
209
210 with threading_helper.wait_threads_exit():
211 handle = thread.start_joinable_thread(task)
212 del handle
213 handle_destroyed.release()
214
215 def test_join_from_self(self):
216 errors = []

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected