MCPcopy Create free account
hub / github.com/simplejson/simplejson / scan_worker

Function scan_worker

tsan_stress_simplejson.py:456–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

454 break
455
456 def scan_worker():
457 deadline = time.monotonic() + DURATION
458 for i in range(ITERATIONS):
459 src = scan_sources[i % len(scan_sources)]
460 try:
461 # scanstring(basestring, end, encoding, strict)
462 scanstring(src, 1, "utf-8", 1)
463 except Exception:
464 pass
465 if time.monotonic() > deadline:
466 break
467
468 half = max(THREADS // 2, 1)
469 run_scenario(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…