MCPcopy Index your code
hub / github.com/RustPython/RustPython / VeryActiveThread

Class VeryActiveThread

Lib/test/test_winreg.py:269–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 done = False
268
269 class VeryActiveThread(threading.Thread):
270 def run(self):
271 with CreateKey(HKEY_CURRENT_USER, test_key_name) as key:
272 use_short = True
273 long_string = 'x'*2000
274 while not done:
275 s = 'x' if use_short else long_string
276 use_short = not use_short
277 SetValue(key, 'changing_value', REG_SZ, s)
278
279 thread = VeryActiveThread()
280 thread.start()

Callers 1

test_changing_valueMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_changing_valueMethod · 0.68