Re: Coroutines and blocking IO
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Coroutines and blocking IO
- From: Chris Marrin <chris@...>
- Date: 2006年1月26日 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$$b1ドル" |$$ ,` ,$$" ``' $$
```"```'" `"` `""` ""` ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'