Lines Matching refs:interp
491 int64_t interp;
496 _channelend_new(int64_t interp)
504 end->interp = interp;
526 _channelend_find(_channelend *first, int64_t interp, _channelend **pprev)
531 if (end->interp == interp) {
588 _channelends_add(_channelends *ends, _channelend *prev, int64_t interp,
591 _channelend *end = _channelend_new(interp);
617 _channelends_associate(_channelends *ends, int64_t interp, int send)
621 interp, &prev);
630 if (_channelends_add(ends, prev, interp, send) == NULL) {
661 _channelends_close_interpreter(_channelends *ends, int64_t interp, int which)
666 end = _channelend_find(ends->send, interp, &prev);
669 end = _channelends_add(ends, prev, interp, 1);
677 end = _channelend_find(ends->recv, interp, &prev);
680 end = _channelends_add(ends, prev, interp, 0);
767 _channel_add(_PyChannelState *chan, int64_t interp,
777 if (_channelends_associate(chan->ends, interp, 1) != 0) {
792 _channel_next(_PyChannelState *chan, int64_t interp)
801 if (_channelends_associate(chan->ends, interp, 0) != 0) {
819 _channel_close_interpreter(_PyChannelState *chan, int64_t interp, int end)
829 if (_channelends_close_interpreter(chan->ends, interp, end) != 0) {
1289 PyInterpreterState *interp = _get_current();
1290 if (interp == NULL) {
1321 int res = _channel_add(chan, PyInterpreterState_GetID(interp), data);
1335 PyInterpreterState *interp = _get_current();
1336 if (interp == NULL) {
1349 _PyCrossInterpreterData *data = _channel_next(chan, PyInterpreterState_GetID(interp));
1369 PyInterpreterState *interp = _get_current();
1370 if (interp == NULL) {
1383 int res = _channel_close_interpreter(chan, PyInterpreterState_GetID(interp), send-recv);
1395 _channel_is_associated(_channels *channels, int64_t cid, int64_t interp,
1407 interp, NULL);
1831 _is_running(PyInterpreterState *interp)
1833 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp);
1849 _ensure_not_running(PyInterpreterState *interp)
1851 int is_running = _is_running(interp);
1863 _run_script(PyInterpreterState *interp, const char *codestr,
1870 PyObject *main_mod = _PyInterpreterState_GetMainModule(interp);
1922 _run_script_in_interpreter(PyInterpreterState *interp, const char *codestr,
1925 if (_ensure_not_running(interp) < 0) {
1936 if (interp != PyInterpreterState_Get()) {
1938 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp);
1945 int result = _run_script(interp, codestr, shared, &exc);
2016 PyInterpreterState *interp = PyThreadState_GetInterpreter(tstate);
2017 PyObject *idobj = _PyInterpreterState_GetIDObject(interp);
2025 _PyInterpreterState_RequireIDRef(interp, 1);
2047 PyInterpreterState *interp = _PyInterpreterID_LookUp(id);
2048 if (interp == NULL) {
2057 if (interp == current) {
2066 if (_ensure_not_running(interp) < 0) {
2071 PyThreadState *tstate = PyInterpreterState_ThreadHead(interp);
2093 PyInterpreterState *interp;
2100 interp = PyInterpreterState_Head();
2101 while (interp != NULL) {
2102 id = _PyInterpreterState_GetIDObject(interp);
2115 interp = PyInterpreterState_Next(interp);
2130 PyInterpreterState *interp =_get_current();
2131 if (interp == NULL) {
2134 return _PyInterpreterState_GetIDObject(interp);
2170 PyInterpreterState *interp = _PyInterpreterID_LookUp(id);
2171 if (interp == NULL) {
2188 if (_run_script_in_interpreter(interp, codestr, shared) != 0) {
2236 PyInterpreterState *interp = _PyInterpreterID_LookUp(id);
2237 if (interp == NULL) {
2240 int is_running = _is_running(interp);
2346 PyInterpreterState *interp;
2359 interp = PyInterpreterState_Head();
2360 while (interp != NULL) {
2361 id = PyInterpreterState_GetID(interp);
2368 id_obj = _PyInterpreterState_GetIDObject(interp);
2378 interp = PyInterpreterState_Next(interp);