From: Roger Pack Date: 2008-12-04T09:56:43+09:00 Subject: [ruby-core:20279] Re: autoload and concurrency >> All things are possible...but many require behavioral changes to Ruby. >> >> - Charlie looks like this has been discussed before [on the todo list since 2000 [1]]. Another "band aid" style option might perhaps be to allow the 'load' file to know which autoload constant triggered it, then it could do its own concurrency. ex: autoload_new :ConstantName, 'thread_safe_require' then when autoload kicks in, it sets "something" [$something, whatever] to 'ConstantName' then 'thread_safe_require' would be able to hopefully load it sanely, if so desired. Perhaps create new functions load_thread_safe and/or maybe require_thread_safe :) Thoughts? -=R [1] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/4589