On Apr 23, 11:25 am, "Michael Koziarski" <[EMAIL PROTECTED]>
wrote:
> 1) Have a giant 'doing dependencies lock
>
> By wrapping a big lock around load_missing_constant and friends so
> only one thread goes about creating classes at any given time.  All
> the other threads would have to wait for that lock to be released.
> This would probably be a little difficult to test, but not too
> difficult.

This could result in a deadlock, if the loaded .rb file hits
const_missing too. As far as I know, Mutex is not recursive.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to