[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: How to stop an instance of Lua
- From: jdarling@...
- Date: Tue, 26 Sep 2006 06:14:53 -0700
In my code there are places that a user might accidently program in an
infinite loop. So I would like to provide a graceful way of exiting
the Lua code. Right now I have a seperate thread that executes the Lua
script, a thread that monitors the output of the script, and a thread
for the UI and other things. This works well, except that attempting
to terminate the thread (naturally) doesn't work within an infinite
loop. Can someone show me how to terminate the thread from another
thread within the same application space?
"Help I suffer from the oxymoron Corporate Security."