Re: When is it safe to call PyStackless_Schedule
Richard Tew <[email protected]> Wed, 10 Sep 2014 15:17:26 +1200
| Newsgroups | gmane.comp.python.stackless |
|---|---|
| Message-ID | <CAN=X-TFvrWHY97SR0Vsj=NN1bD+ScXvWKSCbmN0YsWtt9QvLZQ@mail.gmail.com> |
If you have a crash when you call receive, then you likely have larger problems than when the right time to call schedule is. I don't think it's possible to divine what is going wrong, and expect you need to provide a reproduction case. Cheers On 9/10/14, Robert Babiak <[email protected]> wrote: > 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. >