From: nobu.nokada@... Date: 2004-01-17T19:55:18+09:00 Subject: Re: faster Thread.exclusive Hi, At Sat, 17 Jan 2004 16:16:38 +0900, Joel VanderWerf wrote: > Can anyone see any reason not to use it? There is slightly different > semantics w.r.t. subclasses of Thread that redefine #critical, but I > think the difference is benign. Also, there is no way that > Thread.critical can raise an exception (in the curreny ruby source), so > that's not going to cause a problem with the placement of the "old = > critical" line. Agree. It would be used as Thread.exclusive in almost cases. The gain seems to be mainly caused by replacing constant references with self. -- Nobu Nakada