From: MenTaLguY Date: 2007-06-12T02:10:00+09:00 Subject: Re: Custom Mutex methods undefined by fastthread On Tue, 12 Jun 2007 01:58:06 +0900, Alex Young wrote: > I should have subclassed, but isn't the convention that we can modify classes > to our own desires? Yeah -- I'm not uninterested in supporting that somehow, but on the other hand all the Mutex customizations I've seen so far have either lacked thread safety, or they depended on implementation details which would have meant they wouldn't work under e.g. JRuby either. So I'm a little reluctant. > I admit that modifying a synchronisation primitive is playing with fire, > but I was purposefully not affecting its synchronisation behaviour. Out of curiosity, could you post the code in question? It's difficult for me to see how modifying @owner could not affect the behavior of a "classic" thread.rb mutex, but then I've not seen the code in question. -mental