MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / _getCurrentThread

Method _getCurrentThread

src/PyEventLoop.cc:226–230  ·  view source on GitHub ↗

static inline */

Source from the content-addressed store, hash-verified

224
225/* static inline */
226PyThreadState *PyEventLoop::_getCurrentThread() {
227 // `PyThreadState_Get` is used under the hood of the Python `asyncio.get_running_loop` method,
228 // see https://github.com/python/cpython/blob/7cb3a44/Modules/_asynciomodule.c#L234
229 return PyThreadState_Get();
230}
231
232/* static */
233PyEventLoop PyEventLoop::getMainLoop() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected