MCPcopy Create free account
hub / github.com/METR/vivaria / get_thread_id

Function get_thread_id

pyhooks/pyhooks/python_server.py:48–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47
48def get_thread_id() -> int:
49 ident = threading.current_thread().ident
50 if ident is None:
51 raise Exception("unreachable: couldn't get thread identifier")
52 return ident
53
54
55# just used for logging purposes

Callers 3

set_outputsMethod · 0.85
writeMethod · 0.85
flushMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected