Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ gc_thread
Method
gc_thread
Lib/test/test_free_threading/test_gc.py:20–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
event = threading.Event()
19
20
def
gc_thread():
21
for
i in range(100):
22
o = gc.get_objects()
23
event.set()
24
25
def
mutator_thread():
26
while
not event.is_set():
Callers
nothing calls this directly
Calls
2
set
Method · 0.45
wait
Method · 0.45
Tested by
no test coverage detected