Author: tabish
Date: Mon Nov 26 23:21:25 2012
New Revision: 1413927
URL: http://svn.apache.org/viewvc?rev=1413927&view=rev
Log:
Ensure the task runner threads get more interesting names.
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/CompositeTaskRunner.cpp
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/DedicatedTaskRunner.cpp
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/CompositeTaskRunner.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/CompositeTaskRunner.cpp?rev=1413927&r1=1413926&r2=1413927&view=diff
==============================================================================
---
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/CompositeTaskRunner.cpp
(original)
+++
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/CompositeTaskRunner.cpp
Mon Nov 26 23:21:25 2012
@@ -34,7 +34,7 @@ using namespace decaf::lang::exceptions;
CompositeTaskRunner::CompositeTaskRunner() :
tasks(), mutex(), thread(), threadTerminated(false), pending(false),
shutDown(false) {
- this->thread.reset(new Thread(this));
+ this->thread.reset(new Thread(this, "CompositeTaskRunner Thread"));
this->thread->start();
}
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/DedicatedTaskRunner.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/DedicatedTaskRunner.cpp?rev=1413927&r1=1413926&r2=1413927&view=diff
==============================================================================
---
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/DedicatedTaskRunner.cpp
(original)
+++
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads/DedicatedTaskRunner.cpp
Mon Nov 26 23:21:25 2012
@@ -34,7 +34,7 @@ DedicatedTaskRunner::DedicatedTaskRunner
throw NullPointerException(__FILE__, __LINE__, "Task passed was null");
}
- this->thread.reset(new Thread(this));
+ this->thread.reset(new Thread(this, "ActiveMQ Dedicated Task Runner"));
this->thread->start();
}