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

Method read_set

Lib/test/test_free_threading/test_set.py:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 NUM_LOOPS = 1000
44
45 def read_set():
46 barrier.wait()
47 while not done.is_set():
48 for i in range(self.SET_SIZE):
49 item = i >> 1
50 result = item in s
51
52 def mutate_set():
53 barrier.wait()

Callers

nothing calls this directly

Calls 5

setFunction · 0.85
assertTrueMethod · 0.80
waitMethod · 0.45
is_setMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected