From: "Ara.T.Howard" Date: 2004-02-26T02:04:48+09:00 Subject: Re: io/nonblock - blocks w/threads? On Thu, 26 Feb 2004, Jim Weirich wrote: > > Robert Klemme said: > >> yes of course - i've always wondered why that one doesn't take a > > block... > > > > I guess because normally it's not intended for use in the open range. > > Normally one would use higher level constructs such as Mutex, Queue etc. > > require 'thread' > > Thread.exclusive{ > // Critical Code Here > } rtfm eh? ;-) -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328 | URL :: http://www.ngdc.noaa.gov/stp/ | TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done ===============================================================================