lua-users home
lua-l archive

Re: Coroutines and blocking IO

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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"'

AltStyle によって変換されたページ (->オリジナル) /