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

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

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