From: "Ara.T.Howard" Date: 2003-12-13T02:07:02+09:00 Subject: non-blocking io rubyists- i've got some code for which i need to implement non-blocking io. i do this so seldomly that i always have to google clr and read about doing it. considering that ruby's thread model at times requires nbio it seems like a 'standard' method/lib of accomplishing this safely (handling appropriate signals, etc) should be out there. anyone know of such a beast? right now i'm looking at http://raa.ruby-lang.org/list.rhtml?name=io-wait but would like to avoid c extensions for this particular application. any reason why something like io-wait would not be included in the standard dist? portability i'm guessing... any _complete_ impl of non-blocking io in sources from the RAA that could be reccomended for study? thanks. -a -- ATTN: please update your address books with address below! =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328 | STP :: http://www.ngdc.noaa.gov/stp/ | NGDC :: http://www.ngdc.noaa.gov/ | NESDIS :: http://www.nesdis.noaa.gov/ | NOAA :: http://www.noaa.gov/ | US DOC :: http://www.commerce.gov/ | | The difference between art and science is that science is what we | understand well enough to explain to a computer. | Art is everything else. | -- Donald Knuth, "Discover" | | /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done' ===============================================================================