this is not thread safe; a13g is not in any way guaranteed to be thread
safe.
It was not written with this in mind.
-Andrew
On Sun, Oct 26, 2008 at 10:54 AM, Christian Seiler <chr.sei...@gmail.com>wrote:
> Hi,
> now that we have Rails 2.2 I did a quick look at the activemessaging
> code to check threadsafety. I found code like this:
> def connection broker_name='default'
> return @@connections[broker_name] if @@connections.has_key?
> (broker_name)
> config = load_connection_configuration(broker_name)
> @@connections[broker_name] =
> Gateway.adapters[config[:adapter]].new(config)
> end
> This lazy-loading stuff isn't threadsafe, right?
> Christian
--
Andrew Kuklewicz