Is autoload thread-safe in Ruby 1.9?
Posted
by SFEley
on Stack Overflow
See other posts from Stack Overflow
or by SFEley
Published on 2010-05-14T22:02:20Z
Indexed on
2010/05/14
22:04 UTC
Read the original article
Hit count: 285
It seems to me that the Ruby community has been freaking out a little about autoload since this famous thread, discouraging its use for thread safety reasons.
Does anyone know if this is no longer an issue in Ruby 1.9.1 or 1.9.2? I've seen a bit of talk about wrapping requires in mutexes and such, but the 1.9 changelogs (or at least as much as I've been able to find) don't seem to address this particular question. I'd like to know if I can reasonably start autoloading in 1.9-only libraries without any reasonable grief.
Thanks in advance for any insights.
© Stack Overflow or respective owner