Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F15495BB for ; Wed, 6 Jun 2012 21:08:57 +0000 (UTC) Received: (qmail 30784 invoked by uid 500); 6 Jun 2012 21:08:57 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 30746 invoked by uid 500); 6 Jun 2012 21:08:57 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 30735 invoked by uid 99); 6 Jun 2012 21:08:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 21:08:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 21:08:54 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D69ED23889E1 for ; Wed, 6 Jun 2012 21:08:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1347128 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h Date: Wed, 06 Jun 2012 21:08:33 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120606210833.D69ED23889E1@eris.apache.org> Author: tabish Date: Wed Jun 6 21:08:33 2012 New Revision: 1347128 URL: http://svn.apache.org/viewvc?rev=1347128&view=rev Log: return the local value by reference Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h?rev=1347128&r1=1347127&r2=1347128&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h Wed Jun 6 21:08:33 2012 @@ -61,7 +61,7 @@ namespace lang { * * @returns the current thread's value for this thread local. */ - E get() { + E& get() { void* bytes = getRawValue(); if (bytes == NULL) { E* value = new E();