Hello,
I'd like to use wxLua in a multi-threading application, several threads should 
host their own Lua instance.
The Lua instances should run independent from the others, not sharing anything.
So I create a wxLuaState object for every thread and use RunFile to execute the 
script.

But: I also want to use own functions (published through RegisterFunction) and 
I can't manage to get them independent.
I would have to declare them in a global scope (or as static member functions), 
both would lead to a common function 
implementation which is called from all threads. But I want to have them 
separate, to avoid any interference between the Lua threads.

Can anybody give me a hint how to do this?

Yours,
Helmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to