When is it safe to call PyStackless_Schedule

Robert Babiak <[email protected]> Tue, 9 Sep 2014 18:49:47 -0600
Newsgroups gmane.comp.python.stackless
Message-ID <CAEmPv6FmOwi0rLhWBkQJRo7-8d_wGtFg9qr6AUpqrAy6sL5Jsw@mail.gmail.com>
--===============5326711507291405174==
Content-Type: multipart/alternative; boundary=001a11c2d824c3a3db0502ab6db3

--001a11c2d824c3a3db0502ab6db3
Content-Type: text/plain; charset=UTF-8

Dear wise stackless list, I need some of your wisdom.

I am trying to make raw_input play nice with the stackless scheduler and
not block with my embedded stackless.

I set the PyOS_InputHook to get what amounts to an idle event but when I
call PyStackless_Schedule(PY_None, 0) it crashes (no stackless symbols...)

Is there something I need to check to know if it is safe to call the
scheduler from C?

In general when is it safe to call  PyStackless_Schedule?

I tried to call my BeNice to block and get woken up later, but this also
crashes when trying to receive on my BeNice channel.

- Thanks Rob.
-- 
Life: Bah, I will worry about it when it is over.

--001a11c2d824c3a3db0502ab6db3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Dear wise stackless list, I need some of your wisdom.=
=C2=A0</div><div><br></div>I am trying to make raw_input play nice with the=
 stackless scheduler and not block with my embedded stackless.=C2=A0<div><b=
r></div><div>I set the=C2=A0PyOS_InputHook to get what amounts to an idle e=
vent but when I call=C2=A0PyStackless_Schedule(PY_None, 0) it crashes (no s=
tackless symbols...) =C2=A0</div><div><br></div><div>Is there something I n=
eed to check to know if it is safe to call the scheduler from C?=C2=A0</div=
><div>=C2=A0<div>In general when is it safe to call =C2=A0PyStackless_Sched=
ule?=C2=A0</div><div><br></div><div>I tried to call my BeNice to block and =
get woken up later, but this also crashes when trying to receive on my BeNi=
ce channel.=C2=A0<br clear=3D"all"><div><br></div><div>- Thanks Rob.</div>-=
- <br>Life: Bah, I will worry about it when it is over.
</div></div></div>

--001a11c2d824c3a3db0502ab6db3--


--===============5326711507291405174==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless
--===============5326711507291405174==--