Пример #1
0
static CHANNEL_RECEIVE_HEAD(impl_channel_receive)
{
	STACKLESS_GETARG();
	PyThreadState *ts = PyThreadState_GET();

	if (ts->st.main == NULL) return PyChannel_Receive_M(self);
	return generic_channel_action(self, Py_None, -1, stackless);
}
Пример #2
0
static PyObject *
impl_channel_receive(PyChannelObject *self)
{
    STACKLESS_GETARG();
    PyThreadState *ts = PyThreadState_GET();

    if (ts->st.main == NULL) return PyChannel_Receive_M(self);
    return generic_channel_action(self, Py_None, -1, stackless);
}