diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-11-10 21:41:31 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-11-10 21:41:31 +0000 |
commit | 12d6d3a6f8914d272529d79cba461759e2dedf09 (patch) | |
tree | 881f1c08c8bfc22f94e2d18cef79311d97b0a232 /activesupport/lib/active_support/xml_mini/nokogirisax.rb | |
parent | 8ec51669d46b47027c848001d228d98ee0611f8b (diff) | |
download | rails-12d6d3a6f8914d272529d79cba461759e2dedf09.tar.gz rails-12d6d3a6f8914d272529d79cba461759e2dedf09.tar.bz2 rails-12d6d3a6f8914d272529d79cba461759e2dedf09.zip |
Make ActiveRecord::Delegation#method_missing threadsafe
Two threads may be in method_missing at the same time. If so, they might
both try to define the same delegator method.
Such a situation probably wouldn't result in a particularly spectacular
bug as one method would probably just be overridden by an identical
method, but it could cause warnings to pop up. (It could be worse if
method definition is non-atomic in a particular implementation.)
(We will also need this mutex shortly anyway, see #8127.)
Diffstat (limited to 'activesupport/lib/active_support/xml_mini/nokogirisax.rb')
0 files changed, 0 insertions, 0 deletions