[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Preemptive User Threads
- From: Eike Decker <zet23t@...>
- Date: Thu, 26 Mar 2009 04:39:48 +0100
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 <firstname.lastname@example.org>:
> 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?