Is this the correct way to interrupt a running Chibi Scheme evaluation in another thread? I'm implementing a remote REPL, and using that statement to try to stop a loop like (let loop () (loop)). Unless I'm mistaken, it's failing to stop the evaluation. Have I misunderstood the API?Thanks.
--
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chibi-scheme/e8c83ef7-ee73-4bed-a710-39f2a68db25an%40googlegroups.com.
Thanks. It is ignored unless SEXP_USE_GREEN_THREADS=1, so I've set that when compiling Chibi Scheme. Somehow, however, the context that is being checked in vm.c doesn't have the interruptp field set despite the fact that I've set it in the context that I used when starting the evaluation. There seem to be many places where the green threads system can dynamically create and use new contexts. I don't know how to get hold of the one that's in use at the time the interrupt check is done. I'm probably missing something obvious.
--
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chibi-scheme/77f970c4-3b53-44e5-8c1c-8b7331039f82n%40googlegroups.com.
I'm not using Scheme threads at all. I'm running sexp_eval in a separate Android native OS thread so that I can continue to receive expressions and commands over the network while Scheme evaluation is under way. If the user hits C-c on the desktop client, I'm trying to interrupt the running sexp_eval by using sexp_context_interruptp. But when I call that on the context I used to start the evaluation, it doesn't stop the evaluation. It appears that the context that is being checked isn't the same one that I started with.
--
You received this message because you are subscribed to the Google Groups "chibi-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibi-scheme...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/chibi-scheme/CALnw4LLbD0TJNU5hFZFYuwN7_1X4WvJzOvsrmR3Fooiyi1VHUg%40mail.gmail.com.
Finally, without using threads at all you could restructure your loop as: