You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/06/06 23:08:33 UTC
svn commit: r1347128 -
/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h
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();