On Sun, Sep 28, 2003 at 09:13:35PM +0200, Niclas Olofsson wrote:
> Don't you have any sort of thread-support in the ion code you can use.
> The idea here is to provide lua scripters with a worker-thread run by
> ion core, not by lua itself. It would look like something like this in lua:
> 
>    IonLuaUtils.exec_thread_fn(fn)

You still can't have two Lua scripts running simulateneously except with
some awful kludges count hook/mutex kludges or by running e.g. a file in
a new environment that doesn't share globals with the original. The latter
would be quite easy to implement; just spawn a thread, create an empty 
environment and start a file. In the former case there's all the trouble
of disabling access to Ion's exported functions that many are not
thread-safe.

-- 
Tuomo

Reply via email to