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 <[email protected]>:
> On Wed, Mar 25, 2009 at 4:12 PM, John Dunn <[email protected]> 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
>