Re: [wxlua-users] Multi-threading

2007-01-11 Thread Francisco
Doug Currie <[EMAIL PROTECTED]> writes: > Yes. The LuaTask approach would require that you poll a queue > periodically in the main app loop. You can use "task.receive(0)" for > minimum overhead. Queues are the only inter-task communication > mechanism that is supported by LuaTask. Thank you so mu

Re: [wxlua-users] Multi-threading

2007-01-11 Thread Doug Currie
On Thursday, January 11, 2007 Francisco wrote: > I tried LuaTask and it works, but [...] > LuaTask doesn't seem to support callbacks. > I also have no globals shared by tasks. > Another way out would be to put "task.receive(1)" in app main loop, is > it possible? Yes. The LuaTask approach would

Re: [wxlua-users] Multi-threading

2007-01-11 Thread Francisco
Hi Doug, > > I'm trying out wxLua using pure lua with the module system and wonder > > how do you guys deal with multi-threading. > Also LuaTask http://luaforge.net/projects/luatask/ > which seems to be more tested than lua51pthread and better maintained > than luathread. I tried LuaTask and it w

Re: [wxlua-users] Multi-threading

2007-01-10 Thread Francisco
Hello, John Labenski <[EMAIL PROTECTED]> writes: > 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 l

Re: [wxlua-users] Multi-threading

2007-01-10 Thread Doug Currie
On Wednesday, January 10, 2007 Francisco wrote: > 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/

Re: [wxlua-users] Multi-threading

2007-01-10 Thread John Labenski
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.p

[wxlua-users] Multi-threading

2007-01-10 Thread Francisco
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/ Thanks for any hints.