Re: [tcljava-user] JACL eval cancellation
Brought to you by:
mdejong
From: Wei D. <wd...@fn...> - 2007-02-19 07:49:29
|
Hi Mo, Just got a chance to try it out, it seems that the cancellation only takes effect for a loop, so the following case did not work: 1. Cancellation of single command such as After 10000 did not work. 2. Cancellation of a proc: if the proc contains a loop ( I tried while loop ), it will break out of the while loop and return from the proc immediately, but if there is no while loop, it will continue executing all the remaining statement/command in the proc as if there is no cancellation. 3. Why TclEvent.sync() API implementation eats InterruptedException : while (!isProcessed) { try { wait(0); } catch (InterruptedException e) { continue; =20 } } Are those known issues/limitations or am I missing something here? Thanks a lot for your advice Wei -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] On Behalf Of Mo DeJong Sent: Tuesday, February 06, 2007 6:18 PM To: tcl...@li... Subject: Re: [tcljava-user] JACL eval cancellation Wei Dai wrote: > > HI, > > =20 > > Is it possible that an eval command can be cancelled during its=20 > execution? It does not seem to have any API to do this, but I wonder=20 > if there is way to achieve this in the current JACL implementation,=20 > e.g Can I use Interp.setInterrupted to achieve this? > > =20 > Yes, please read: http://tcljava.cvs.sourceforge.net/*checkout*/tcljava/tcljava/docs/Topic s/SetInterrupted.html Mo DeJong ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |