lua-users home
lua-l archive

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


Did you take a look at Copas?
http://www.keplerproject.org/copas/

It allows you to read from sockets without blocking. Each attempt to
read from a socket will yield the currently running thread and it will
continue once new data has arrived.

Eike

2009/3/26 Sam Roberts <vieuxtech@gmail.com>:
> On Wed, Mar 25, 2009 at 4:12 PM, John Dunn <John_Dunn@qscaudio.com> wrote:
>> Looking that the documentation for lua threading, I'm a little confused at
>> the interaction between spawning a C thread and lua_newthread. Would doing
>> the following be sufficient?
>
> Would you find this example useful?
>
> http://www.tecgraf.puc-rio.br/~diego/professional/luathread/
>
> Cheers,
> Sam
>