diff options
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 |