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

Function callDispatchFunc

src/JobQueue.cc:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static PyObject *callDispatchFunc(PyObject *dispatchFuncTuple, PyObject *Py_UNUSED(unused)) {
88 JSContext *cx = (JSContext *)PyLong_AsVoidPtr(PyTuple_GetItem(dispatchFuncTuple, 0));
89 JS::Dispatchable *dispatchable = (JS::Dispatchable *)PyLong_AsVoidPtr(PyTuple_GetItem(dispatchFuncTuple, 1));
90 dispatchable->run(cx, JS::Dispatchable::NotShuttingDown);
91 Py_RETURN_NONE;
92}
93
94static PyMethodDef callDispatchFuncDef = {"JsDispatchCallable", callDispatchFunc, METH_NOARGS, NULL};
95

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected