コード例 #1
0
PyObject *
PyChannel_Receive(PyChannelObject *self)
{
    PyObject *ret = impl_channel_receive(self);
    STACKLESS_ASSERT();
    assert(!STACKLESS_UNWINDING(self));
    return ret;
}
コード例 #2
0
PyObject *
PyChannel_Receive_nr(PyChannelObject *self)
{
    PyObject *ret;

    STACKLESS_PROPOSE_ALL();
    ret = impl_channel_receive(self);
    STACKLESS_ASSERT();
    return ret;
}
コード例 #3
0
ファイル: channelobject.c プロジェクト: d11/rts
static PyObject *
channel_iternext(PyChannelObject *self)
{
	STACKLESS_GETARG();

	if (self->flags.closing && self->balance == 0) {
		/* signal the end of the iteration */
		return NULL;
	}
	STACKLESS_PROMOTE_ALL();
	return impl_channel_receive(self);
}
コード例 #4
0
ファイル: channelobject.c プロジェクト: d11/rts
static PyObject *
channel_receive(PyObject *self)
{
	return impl_channel_receive((PyChannelObject*)self);
}