From: Chris M. <ch...@ma...> - 2006-01-09 00:21:09
|
A while ago, John and I discussed the changes I made to the older version of wxLua I was using. My big issue was being able to run the wxApp event loop in a separate thread from Emma. Because of this I could not call Lua functions that had been connected because they would run in the wrong thread. So I came up with a native callback mechanism. This basically used the same Connect() model that wxLua uses, but it uses a form that registers a C++ callback rather than a Lua function. wxLua would call this callback and my native function would send a message to the thread running the Lua interpreter to execute the Lua function. All this inter-thread comm is done in my app, so all wxLua needs is the ability to register native callbacks. I discussed adding this to this latest incarnation of wxLua with John. It does not look like that was ever added. John, any resolution on adding this? If there is still interest, I will switch over to your version of wxLua, make my changes there and make them available to you. My goal, of course, is to use a stock version of wxLua! Let me know, thanks... -- chris marrin ,""$, ch...@ma... b` $ ,,. (650) 941-9040 mP b' , 1$' M1 ,.` ,b` ,` :$$' ,|` mP ,` ,mm ,b" b" ,` ,mm m$$ ,m ,`P$$ m$` ,b` .` ,mm ,'|$P ,|"1$` ,b$P ,` :$1 b$` ,$: :,`` |$$ ,` $$` ,|` ,$$,,`"$$ .` :$| b$| _m$`,:` :$1 ,` ,$Pm|` ` :$$,..;"' |$: P$b, _;b$$b$1" |$$ ,` ,$$" ``' $$ ```"```'" `"` `""` ""` ,P` "As a general rule,don't solve puzzles that open portals to Hell"' |