On 1/10/07, Francisco <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Thank you for this software.
>
> I'm trying out wxLua using pure lua with the module system and wonder how do 
> you
> guys deal with multi-threading.
>
> I found two implementations:
> http://lua51pthread.luaforge.net/
> http://www.cs.princeton.edu/~diego/professional/luathread/

I haven't tried to do any multithreading. I've seen of the lua mailing
list that coroutines are always suggested as an alternative.

There is one catch though, any GUI function calls you make MUST be
made from the main thread. This is a limitation of the underlying GUI
system and not wxLua or wxWidgets. You use wxPostEvent to pass
messages from your thread to the main thread and then take action from
there.

Regards,
    John Labenski

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to