On 8/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello,
> one more question on wxLua in a multi-threading application (several threads
> should host their own Lua instance).
> I create a wxLuaState object for every thread and use RunFile to execute the
> script.
> After calling "RunFile" I loose control and have to wait until the script
> ends.
> Is there a possibility to abort the script execution by the hosting
> application/thread? Maybe by sending an event or something to wxLua?
Try using wxLuaState::SetDebugHookBreak or at least see the code in
modules/wxlua/wxlstate.cpp which sets the debug hook function to
wxLua_lua_debugHookFunction which you can use as a template of how to
jump into a lua program while it's running. Just replace the code in
wxLuaState::SetDebugHookBreak to have the lua_State hook into your own
debug function.
I am not too familiar with coroutines, but these might also be helpful.
Regards,
John Labenski
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users