Re: interrupts

[email protected]
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
On Thu, Jun 26, 2003 at 04:08:13PM -0700, Turadg Aleahmad wrote:
> Hi, SISC folk.
> 
> I'm having trouble getting interrupts to work.  Before, I would enable 
> them with this:
> Defaults.DEFAULT_PERMIT_INTERRUPTS = true;
> 
> and then trigger one with this:
> interpreter.tctx.interrupt = true;
> 
> 
> Somewhere along the way, enabling them instead required setting a 
> runtime property:
> -Dsisc.permitInterupts=true
> 
> I've made this change in my system and I am certain because 
> "sisc.util.Util.permitInterrupts" is TRUE.

All the above is correct.  Defaults.PERMITINTERRUPTS is final as a 
result of the parameter overhaul.  

> 
> But when I run this Scheme code:
> > (define (go) (go))
> > (go)
> 
> and try to break it by setting "interrupt" of the ThreadContext, it 
> won't stop.

What version btw?  In CVS, the following works:

SISC (1.8.1-alpha) - main
#;> (define (go)  (go))
#;> (import threading)
#;> (define t (thread/new (lambda () (go)))
)
#;> (thread/start t)
#;> (thread/interrupt t)
#;> (thread/state t)
finished-with-error

If I've got the version right, then it would seem like something else is 
wrong.  Are threads in any way involved?

> 
> Should I be doing something differently?  The manual isn't very 
> informative on this:
> http://sisc.sourceforge.net/manual/html/apd.html#id2954892
> 
> (incidentally, "sisc.permitinterrupts" is "sisc.permitInterrupts" in 
> later versions)

Yes.  The manual for 1.8 should be accurate on this.
> 
> Thanks,
> Turadg
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> SISC-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sisc-devel
> 

--
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE++7pfr9IW4v3mHtQRAoSEAJ9yWcfjkp9yHNmlgYsHONztKi9cVQCdHI3y
+LpVhzvKuIEwWHbAJ7PmSMQ=
=6qVv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.