[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Turing-incomplete Lua?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 7 Dec 2004 16:07:19 -0200
> Why not set the hook before you start the script (from the same thread that the script runs in, I mean)?
Because it will probably slow down the script, even if the hook only
checks a flag. Plus you'll have to store the flag somewhere that the
main application can raise it when the user presses 'stop' or something.
So, I think it's easier simply to set the hook at the momemnt the thread
needs to be interrupted.