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

Method mutator_thread

Lib/test/test_free_threading/test_gc.py:25–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 event.set()
24
25 def mutator_thread():
26 while not event.is_set():
27 o1 = MyObj()
28 o2 = MyObj()
29 o3 = MyObj()
30 o4 = MyObj()
31
32 gcs = [Thread(target=gc_thread)]
33 mutators = [Thread(target=mutator_thread) for _ in range(4)]

Callers

nothing calls this directly

Calls 3

MyObjClass · 0.70
is_setMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected