May I interrupt an Interpreter?

Antonio <[email protected]> Mon, 27 Nov 2006 12:29:59 +0100
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Hi all,

Would it be possible to interrupt a running Interpreter once I'm 
evaluating an expression? If so, how can I do that in a safe way?

( I was thinking of intepreter.tctx.nativeThread().interrupt() but I 
don't know if this is safe/appropriate or not )

The fact is that I'm embedding SISC in an IDE, and I'd like all Scheme 
evaluations to be cancellable. Interrupting the thread that runs the 
Interpreter does not seem to work (because as far as I've seen SISC runs 
its own threads?).

Any help greatly appreciated!

Cheers,
Antonio


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV