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?

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.


2009/3/26 Sam Roberts <>:
> On Wed, Mar 25, 2009 at 4:12 PM, John Dunn <> 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?
> Cheers,
> Sam