From: <he...@gm...> - 2006-08-09 14:29:24
|
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 |