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 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.

It would be interesting to explore a LuaTask and Rings integration,
http://www.keplerproject.org/rings/ -- but for the logging mechanism
you described, queues should work just fine.

e

-- 
Doug Currie
Londonderry, NH, USA


-------------------------------------------------------------------------
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