[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Coroutines and blocking IO
- From: Chris Marrin <chris@...>
- Date: Thu, 26 Jan 2006 14:52:16 -0800
Javier Guerra wrote:
...
on windows.... maybe select() wouldn't cut it. is there a poll()-like system?
i think most unixes are evolving to away from select(), anyway
Right. Threading is really the right way to solve this problem. It would
be nice if coroutines could yield when a lua thread did some blocking
I/O. But I don't see how you could do that?
--
chris marrin ,""$,
chris@marrin.com b` $ ,,.
(650) 941-9040 mP b' , 1$'
M1 ,.` ,b` ,` :$$'
,|` mP ,` ,mm
,b" b" ,` ,mm m$$ ,m ,`P$$
m$` ,b` .` ,mm ,'|$P ,|"1$` ,b$P ,` :$1
b$` ,$: :,`` |$$ ,` $$` ,|` ,$$,,`"$$ .` :$|
b$| _m$`,:` :$1 ,` ,$Pm|` ` :$$,..;"' |$:
P$b, _;b$$b$1" |$$ ,` ,$$" ``' $$
```"```'" `"` `""` ""` ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'