lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sunday 13 May 2007, duck wrote:
> Has anyone used LuaTask for handling multiple threads which communicate
> using multiple blocking sockets?

(a bit of self-promotion...)

i haven't used LuaTask precisely because of that limitation on message 
passing; my solution is HTT (Helper Threads Toolkit), it makes easy to write 
non-blocking C modules, so that you can easily poll with a coroutine-based 
Lua scheduler.

as examples, i've written file and TCP I/O modules, as well as a simple (but 
efficient) scheduler.

check it in http://luaforge.net/projects/helper-threads/  but don't waste time 
with the packaged r-4, go directly to the CVS head.


-- 
Javier

Attachment: pgpiHAruQ3ixV.pgp
Description: PGP signature