Re: interrupts
| Newsgroups | gmane.comp.java.sisc.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jun 27, 2003 at 07:54:35AM -0700, Turadg Aleahmad wrote: > [email protected] wrote: > >>> > >>and try to break it by setting "interrupt" of the ThreadContext, it > >>won't stop. > >> > >What version btw? In CVS, the following works: > > > > I'm not certain what version. I think I built it ~6 weeks ago from > CVS. There appears to be no symbol defined with the SISC version. > Wouldn't that be useful? There is. Each release is tagged, such as b1_8_1. > In any case, your example code does work as advertised with the build > I'm using. But I have a slightly different need and I don't know how to > implement it. > > We've got a JFrame with a SISC console in it. (see > http://turadg.ucdev.org/jist/callListener.php ) We're using a custom > JStyledTextPane instead of the REPL to get syntax highlighting etc. > There's a break button in the upper left. We want that to interrupt the > execution of whatever's happening in the console and return the > environment to a safe state. The button is coded to execute > > interpreter.tctx.interrupt = true; > > which evidently worked before (1.7?). It no longer does anything as far as > I can tell. Its possible that thats not the right thread context, but I doubt it. What does (express go) yield for you? > What should the button be doing? On evaluation, do I have to explicitly > create a Scheme thread and stick the evaluation inside? If so, how can I > do this in Java-land? You shouldn't have to, no. Scott
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+/Hjcr9IW4v3mHtQRAjOFAJ0TTZmhXaIGNoUGqXK0M+7bJikWUgCeKAOm 7vVn53BVI1qdAxiZ0b1St0E= =3lE7 -----END PGP SIGNATURE-----