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

Function wrapper

tsan_stress_simplejson.py:272–280  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

270 errors_lock = threading.Lock()
271
272 def wrapper(fn):
273 def wrapped():
274 try:
275 barrier.wait()
276 fn()
277 except Exception as exc:
278 with errors_lock:
279 errors.append(repr(exc))
280 return wrapped
281
282 threads = []
283 for fn, count in zip(target_fns, thread_counts):

Callers 1

_run_scenario_threadsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…