diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-22 23:51:08 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-25 13:21:59 +0200 |
commit | 57a4337e254b485df33dc01e508bb936adc6ec75 (patch) | |
tree | 9040323a7b8edc55f62e541dece0963e9df99d3d /sw | |
parent | 961d061ba177a79fe9f91404e3cd4d0d0bc30a87 (diff) |
set names on a bunch more threads...
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/finalthreadmanager.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/docnode/retrieveinputstream.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/dbui/maildispatcher.cxx | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/docnode/finalthreadmanager.cxx b/sw/source/core/docnode/finalthreadmanager.cxx index 419b45022cd3..efbeb7d873f8 100644 --- a/sw/source/core/docnode/finalthreadmanager.cxx +++ b/sw/source/core/docnode/finalthreadmanager.cxx @@ -120,6 +120,8 @@ bool CancelJobsThread::stopped() const void SAL_CALL CancelJobsThread::run() { + osl_setThreadName("sw CancelJobsThread"); + while ( !stopped() ) { while ( existJobs() ) @@ -190,6 +192,8 @@ bool TerminateOfficeThread::OfficeTerminationStopped() void SAL_CALL TerminateOfficeThread::run() { + osl_setThreadName("sw TerminateOfficeThread"); + while ( !OfficeTerminationStopped() ) { osl::MutexGuard aGuard(maMutex); diff --git a/sw/source/core/docnode/retrieveinputstream.cxx b/sw/source/core/docnode/retrieveinputstream.cxx index 6e609f6c1e13..ad70921e2902 100644 --- a/sw/source/core/docnode/retrieveinputstream.cxx +++ b/sw/source/core/docnode/retrieveinputstream.cxx @@ -51,6 +51,8 @@ SwAsyncRetrieveInputStreamThread::~SwAsyncRetrieveInputStreamThread() void SwAsyncRetrieveInputStreamThread::threadFunction() { + osl_setThreadName("SwAsyncRetrieveInputStreamThread"); + com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue > xProps( 2 ); xProps[0].Name = "URL"; xProps[0].Value <<= mrLinkedURL; diff --git a/sw/source/uibase/dbui/maildispatcher.cxx b/sw/source/uibase/dbui/maildispatcher.cxx index 8b1a8771b3c0..4bd4f174d410 100644 --- a/sw/source/uibase/dbui/maildispatcher.cxx +++ b/sw/source/uibase/dbui/maildispatcher.cxx @@ -221,6 +221,8 @@ void MailDispatcher::sendMailMessageNotifyListener(uno::Reference<mail::XMailMes void MailDispatcher::run() { + osl_setThreadName("MailDispatcher"); + // acquire a self reference in order to avoid race // conditions. The last client of this class must // call shutdown before releasing his last reference |