Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
MyObj
Class · 0.70
is_set
Method · 0.45
wait
Method · 0.45
Tested by
no test coverage detected