On Apr 23, 2008, at 2:42 AM, Michael Koziarski wrote:
>
>> Both these options were discussed in #9155 like tarmo said. Rather
>> than Thread#exclusive we could use some specific mutexes so other
>> threads can go about their other business. Any takers?
>
> Of course, as commented in trac, defining a new class isn't atomic, so
> it's probably Thread#exclusive or nothing.
>
> Thread#exclusive depends on Thread#critical= which isn't considered
> kosher, as a result both are gone from 1.9.
>
> So, unless I'm missing something we need to have an alternative
> Dependencies mode if we want really do anything deterministic with
> dependencies and threads?
>
>
> --
> Cheers
>
> Koz
I'd recommend not using Thread.exclusive at all it will end up
limiting rails options on alternate ruby impls. We should either wrap
a mutex around any calls to the Dependencies, or even better in
production mode we should preload all classes before any hits to the
application which would avoid this issue entirely.
Cheers-
- Ezra Zygmuntowicz
-- Founder & Software Architect
-- [EMAIL PROTECTED]
-- EngineYard.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---