Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Threadsafety
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Christian Seiler  
View profile  
 More options Oct 26 2008, 10:54 am
From: Christian Seiler <chr.sei...@gmail.com>
Date: Sun, 26 Oct 2008 07:54:45 -0700 (PDT)
Local: Sun, Oct 26 2008 10:54 am
Subject: Threadsafety
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Kuklewicz  
View profile  
 More options Oct 26 2008, 3:06 pm
From: "Andrew Kuklewicz" <kooks...@gmail.com>
Date: Sun, 26 Oct 2008 15:06:35 -0400
Local: Sun, Oct 26 2008 3:06 pm
Subject: Re: Threadsafety

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:

--
Andrew Kuklewicz

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google