[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: hook question
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 11 Oct 2006 12:23:30 -0300
> I am executing user code in Lua threads and I seek a low overhead
> means of terminating user tasks that exceed a predefined time limit.
Set an alarm and call lua_error in the alarm handler. You have to be careful
to handle the alarm in two steps: a signal handler that sets hooks
and a hook handler that raises the error. See lua.c or my lalarm.
--lhf
- References:
- Re: hook question, David Burgess
- Re: hook question, Mike Pall
- Re: hook question, David Jones
- Re: hook question, Mike Pall
- Re: hook question, David Jones
- Re: hook question, Mike Pall
- Re: hook question, David Burgess
- Re: hook question, David Jones
- Re: hook question, Roberto Ierusalimschy
- Re: hook question, David Burgess