From: MenTaLguY Date: 2008-03-19T06:22:54+09:00 Subject: Re: Thread#raise, Thread#kill, and timeout.rb are unsafe On Wed, 19 Mar 2008 04:13:19 +0900, ara howard wrote: > 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. Okay. I'd thought you were suggesting an API rather than illustrating an idea. -mental