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 06ADCD986 for ; Mon, 26 Nov 2012 23:21:50 +0000 (UTC) Received: (qmail 42431 invoked by uid 500); 26 Nov 2012 23:21:49 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 42399 invoked by uid 500); 26 Nov 2012 23:21:49 -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 42392 invoked by uid 99); 26 Nov 2012 23:21:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2012 23:21:49 +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; Mon, 26 Nov 2012 23:21:47 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C655D2388980; Mon, 26 Nov 2012 23:21:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1413927 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/threads: CompositeTaskRunner.cpp DedicatedTaskRunner.cpp Date: Mon, 26 Nov 2012 23:21:26 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121126232126.C655D2388980@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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(); }