Greetings, and sorry for the delay!

There are hooks for sigalrm in usig2.c, and gcl does recover on
receiving this signal, but it is not clear to me what is interrupted
and what continues in this case yet.  There are system functions
si::allow-signal etc., and we can easily add an alarm function.
(sleep 60), for example, terminates on the signal, but (do nil (nil)
(print 'f)(sleep 1)) does not break back up to top-level.  I suspect
to make this useful one will need to trigger a throw on signal receipt
to a user-defined catch somewhere.

Take care,

Matt Kaufmann <[EMAIL PROTECTED]> writes:

> Hi, Camm --
> 
> Do you know of any way to set a time limit in GCL?  For example, maybe
> 
> (with-time-limit 35 (foo))
> 
> would abort the evaluation of (foo) after 35/60 second.
> 
> Thanks --
> -- Matt
> 
> 
> 

-- 
Camm Maguire                                            [EMAIL PROTECTED]
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah


_______________________________________________
Gcl-devel mailing list
Gcl-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/gcl-devel

Reply via email to