MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyThreadState_GetID

Function PyThreadState_GetID

asyncpg/protocol/record/pythoncapi_compat.h:348–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346// bpo-39947 added PyInterpreterState_Get() to Python 3.9.0a6
347#if 0x030700A1 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030900A6 && !defined(PYPY_VERSION)
348static inline uint64_t PyThreadState_GetID(PyThreadState *tstate)
349{
350 assert(tstate != _Py_NULL);
351 return tstate->id;
352}
353#endif
354
355// bpo-43760 added PyThreadState_EnterTracing() to Python 3.11.0a2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected