lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Our cheesy solution to this problem:

We modified the lua_state structure to contain an extra variable, and we
stuck a check into the main VM loop to do a lua_error if it is set.  This
way we can stop a running lua thread.  It works fine, it just is kind of
a hack and every time a new lua comes out we have to modify the new 
version to contain this hack.


On Tue, Oct 13, 1998 at 10:45:51PM -0200, Steve Dekorte wrote:
> Begin forwarded message:
> From: Jim  Mathies <>
> Well, here is a related question - if the Lua VM get's terminted mid
> process, without any warning, will it leave allocated memory behind?
> > -----Original Message-----
> > 
> > Jim  Mathies <> wrote:
> > > Do you know of any way to interrupt the running VM by making a call
> > > into it while a separate thread is executing a program?
> > 
> > There's no way to do that using the standard Lua distribution.
> > There was a guy on the Lua mailing list that added a call to do something
> > like that though. Do you need it now?