Satoshi Nakagawa
snaka****@infot*****
Thu Jul 5 19:11:24 JST 2007
On 2007/07/05, at 18:39, Laurent Sansonetti wrote: > 2 things you could do: > > - Only set the RUBYCOCOA_THREAD_HOOK_DISABLE environment variable if > OSX::RBRuntime.isRubyThreadingSupported? returns false. Note that this > method is new in trunk. One possible way: > > unless ((OSX::RBRuntime.isRubyThreadingSupported?) rescue false) > ENV['RUBYCOCOA_THREAD_HOOK_DISABLE'] = true > end Hmm. I think it's practically the same way as set ENV['RUBYCOCOA_THREAD_HOOK_DISABLE'] = true every time. Because the code I wrote in ruby threads should support non-patched ruby interpreter in any cases. > - Embed the patched Ruby inside your application (actually, > libruby.dylib, the standard library and the extensions should be > enough). Wow. It's a radical solution and seems effective. I consider this way. Thanks :) -- Satoshi Nakagawa