From: Charles Oliver Nutter Date: 2009-01-31T06:01:48+09:00 Subject: [ruby-core:21688] Re: use of require thread safety Ken Bloom wrote: > If you can check and emit a fatal error (or warning) then couldn't you > just use a reentrant lock? Use a reentrant lock and proceed to double-require? In our case I think it will be tricky to detect a deadlock, so we're likely to emit a stern warning when a require is forced to block and then go ahead and block. At least that will give us an idea where the circular require lives. How would C Ruby detect the deadlock? - Charlie