From: ara howard Date: 2008-03-19T04:13:19+09:00 Subject: Re: Thread#raise, Thread#kill, and timeout.rb are unsafe On Mar 18, 2008, at 11:52 AM, MenTaLguY wrote: > I think the only way around this is for the receiving thread to > explicitly choose moments when it wants to receive any pending > asynchronous exceptions. Can you think of another way? perhaps i wasn't being clear. that's exactly what i was showing - a handler that gets called (critical section of course) which simply enques the exception. then the thread itself must check for these at the 'right' moment. a @ http://codeforpeople.com/ -- it is not enough to be compassionate. you must act. h.h. the 14th dalai lama