summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-08-22 23:51:08 +0200
committerMichael Stahl <mstahl@redhat.com>2014-08-25 13:21:59 +0200
commit57a4337e254b485df33dc01e508bb936adc6ec75 (patch)
tree9040323a7b8edc55f62e541dece0963e9df99d3d
parent961d061ba177a79fe9f91404e3cd4d0d0bc30a87 (diff)
set names on a bunch more threads...
Change-Id: I4c2f2f0bcce52839033876ec991529721e06a3c8
-rw-r--r--avmedia/source/vlc/wrapper/EventHandler.cxx4
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSInit.cxx2
-rw-r--r--cppu/source/AffineBridge/AffineBridge.cxx4
-rw-r--r--cppu/source/threadpool/thread.cxx2
-rw-r--r--dbaccess/source/filter/xml/xmlfilter.cxx2
-rw-r--r--dbaccess/source/ui/dlg/odbcconfig.cxx2
-rw-r--r--dbaccess/source/ui/relationdesign/RelationController.cxx2
-rw-r--r--desktop/source/offacc/acceptor.cxx2
-rw-r--r--extensions/source/update/check/updatecheck.cxx6
-rw-r--r--extensions/source/update/check/updatecheckjob.cxx2
-rw-r--r--forms/source/component/EventThread.cxx2
-rw-r--r--framework/source/helper/wakeupthread.cxx2
-rw-r--r--io/source/stm/opump.cxx1
-rw-r--r--linguistic/source/gciterator.cxx2
-rw-r--r--salhelper/source/timer.cxx2
-rw-r--r--sd/source/ui/remotecontrol/Transmitter.cxx2
-rw-r--r--sdext/source/presenter/PresenterTimer.cxx2
-rw-r--r--sfx2/source/doc/doctemplates.cxx2
-rw-r--r--sfx2/source/doc/printhelper.cxx2
-rw-r--r--svx/source/core/extedit.cxx2
-rw-r--r--svx/source/form/fmsrcimp.cxx2
-rw-r--r--svx/source/svdraw/svdograf.cxx2
-rw-r--r--sw/source/core/docnode/finalthreadmanager.cxx4
-rw-r--r--sw/source/core/docnode/retrieveinputstream.cxx2
-rw-r--r--sw/source/uibase/dbui/maildispatcher.cxx2
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx3
-rw-r--r--ucb/source/ucp/webdav/SerfLockStore.cxx2
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx2
-rw-r--r--vcl/unx/generic/printer/printerinfomanager.cxx2
29 files changed, 67 insertions, 1 deletions
diff --git a/avmedia/source/vlc/wrapper/EventHandler.cxx b/avmedia/source/vlc/wrapper/EventHandler.cxx
index 666ac94208d9..40e2e45c5628 100644
--- a/avmedia/source/vlc/wrapper/EventHandler.cxx
+++ b/avmedia/source/vlc/wrapper/EventHandler.cxx
@@ -28,6 +28,8 @@ void EventHandler::stop()
void EventHandler::run()
{
+ osl_setThreadName("VLC EventHandler");
+
TCallback callback;
do
{
@@ -43,4 +45,4 @@ void EventHandler::run()
}
}
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSInit.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSInit.cxx
index 81030a73452a..60ba8c079d0d 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSInit.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSInit.cxx
@@ -229,6 +229,8 @@ void MNS_XPCOM_EventLoop()
extern "C" void MNS_Mozilla_UI_Thread( void *arg )
{
+ osl_setThreadName("MNS_Mozilla_UI_Thread");
+
aLive=1;
OSL_TRACE( "IN : MNS_Mozilla_UI_Thread()" );
UI_Thread_ARGS * args = (UI_Thread_ARGS*) arg;
diff --git a/cppu/source/AffineBridge/AffineBridge.cxx b/cppu/source/AffineBridge/AffineBridge.cxx
index 786e9d9ede2a..24b81275c299 100644
--- a/cppu/source/AffineBridge/AffineBridge.cxx
+++ b/cppu/source/AffineBridge/AffineBridge.cxx
@@ -97,6 +97,8 @@ public:
void InnerThread::run(void)
{
+ osl_setThreadName("UNO AffineBridge InnerThread");
+
m_pAffineBridge->enter();
m_pAffineBridge->innerDispatch();
m_pAffineBridge->leave();
@@ -120,6 +122,8 @@ OuterThread::OuterThread(AffineBridge * threadEnvironment)
void OuterThread::run(void)
{
+ osl_setThreadName("UNO AffineBridge OuterThread");
+
osl::MutexGuard guard(m_pAffineBridge->m_outerMutex);
m_pAffineBridge->m_outerThreadId = getIdentifier();
diff --git a/cppu/source/threadpool/thread.cxx b/cppu/source/threadpool/thread.cxx
index 4924a45e3a92..aed132243b5d 100644
--- a/cppu/source/threadpool/thread.cxx
+++ b/cppu/source/threadpool/thread.cxx
@@ -148,6 +148,8 @@ namespace cppu_threadpool {
void ORequestThread::run()
{
+ osl_setThreadName("cppu_threadpool::ORequestThread");
+
try
{
while ( m_pQueue )
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index a8a8a3b56a26..e55ad34e6e20 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -107,6 +107,8 @@ namespace dbaxml
void SAL_CALL FastLoader::run()
{
+ osl_setThreadName("dbaxml::FastLoader");
+
if ( m_eWhat == E_JAVA )
{
#if HAVE_FEATURE_JAVA
diff --git a/dbaccess/source/ui/dlg/odbcconfig.cxx b/dbaccess/source/ui/dlg/odbcconfig.cxx
index a6677a7f9d35..557af358390b 100644
--- a/dbaccess/source/ui/dlg/odbcconfig.cxx
+++ b/dbaccess/source/ui/dlg/odbcconfig.cxx
@@ -287,6 +287,8 @@ public:
protected:
virtual void SAL_CALL run()
{
+ osl_setThreadName("dbaui::ProcessTerminationWait");
+
osl_joinProcess( m_hProcessHandle );
osl_freeProcessHandle( m_hProcessHandle );
Application::PostUserEvent( m_aFinishHdl );
diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx
index 230d845feeeb..49f2f7ba72b0 100644
--- a/dbaccess/source/ui/relationdesign/RelationController.cxx
+++ b/dbaccess/source/ui/relationdesign/RelationController.cxx
@@ -311,6 +311,8 @@ namespace
void SAL_CALL RelationLoader::run()
{
+ osl_setThreadName("RelationLoader");
+
const OUString* pIter = m_aTableList.getConstArray() + m_nStartIndex;
for(sal_Int32 i = m_nStartIndex; i < m_nEndIndex;++i,++pIter)
{
diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx
index 4730902043a3..ef64f9f65116 100644
--- a/desktop/source/offacc/acceptor.cxx
+++ b/desktop/source/offacc/acceptor.cxx
@@ -38,6 +38,8 @@ namespace desktop
extern "C" void offacc_workerfunc (void * acc)
{
+ osl_setThreadName("URP Acceptor");
+
((Acceptor*)acc)->run();
}
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx
index e520c5a99a38..5c1399e70507 100644
--- a/extensions/source/update/check/updatecheck.cxx
+++ b/extensions/source/update/check/updatecheck.cxx
@@ -463,6 +463,8 @@ UpdateCheckThread::onTerminated()
void SAL_CALL
UpdateCheckThread::run()
{
+ osl_setThreadName("UpdateCheckThread");
+
bool bExtensionsChecked = false;
TimeValue systime;
TimeValue nExtCheckTime;
@@ -626,6 +628,8 @@ DownloadThread::~DownloadThread()
void SAL_CALL
DownloadThread::run()
{
+ osl_setThreadName("DownloadThread");
+
#ifdef WNT
CoUninitialize();
CoInitialize( NULL );
@@ -710,6 +714,8 @@ ShutdownThread::~ShutdownThread()
void SAL_CALL
ShutdownThread::run()
{
+ osl_setThreadName("ShutdownThread");
+
TimeValue tv = { 0, 250 };
m_aCondition.wait(&tv);
diff --git a/extensions/source/update/check/updatecheckjob.cxx b/extensions/source/update/check/updatecheckjob.cxx
index 6a2699aafab4..db3ac9a7c1c6 100644
--- a/extensions/source/update/check/updatecheckjob.cxx
+++ b/extensions/source/update/check/updatecheckjob.cxx
@@ -125,6 +125,8 @@ InitUpdateCheckJobThread::InitUpdateCheckJobThread(
void SAL_CALL InitUpdateCheckJobThread::run()
{
+ osl_setThreadName("InitUpdateCheckJobThread");
+
if (!m_bShowDialog) {
TimeValue tv = { 25, 0 };
m_aCondition.wait( &tv );
diff --git a/forms/source/component/EventThread.cxx b/forms/source/component/EventThread.cxx
index a7a633b1a5d5..ac891c553efa 100644
--- a/forms/source/component/EventThread.cxx
+++ b/forms/source/component/EventThread.cxx
@@ -160,6 +160,8 @@ void SAL_CALL OComponentEventThread::onTerminated()
void OComponentEventThread::run()
{
+ osl_setThreadName("frm::OComponentEventThread");
+
implStarted( );
// Hold on to ourselves, so that we're not deleted if a dispose is called at some point in time
diff --git a/framework/source/helper/wakeupthread.cxx b/framework/source/helper/wakeupthread.cxx
index e695a603a1b5..c048ca5aa59a 100644
--- a/framework/source/helper/wakeupthread.cxx
+++ b/framework/source/helper/wakeupthread.cxx
@@ -33,6 +33,8 @@ WakeUpThread::WakeUpThread(const css::uno::Reference< css::util::XUpdatable >& x
void SAL_CALL WakeUpThread::run()
{
+ osl_setThreadName("framework::WakeUpThread");
+
::osl::Condition aSleeper;
TimeValue aTime;
diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx
index 51b4bb83226d..42e3a356cabb 100644
--- a/io/source/stm/opump.cxx
+++ b/io/source/stm/opump.cxx
@@ -241,6 +241,7 @@ void Pump::close()
void Pump::static_run( void* pObject )
{
+ osl_setThreadName("io_stm::Pump::run()");
((Pump*)pObject)->run();
((Pump*)pObject)->release();
}
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 74f9aba17506..36a8068aaa57 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -223,6 +223,8 @@ static sal_Int32 lcl_BacktraceWhiteSpaces( const OUString &rText, sal_Int32 nSta
extern "C" void lcl_workerfunc (void * gci)
{
+ osl_setThreadName("GrammarCheckingIterator");
+
((GrammarCheckingIterator*)gci)->DequeueAndCheck();
}
diff --git a/salhelper/source/timer.cxx b/salhelper/source/timer.cxx
index f0486b5a1b5b..899d6c325d6a 100644
--- a/salhelper/source/timer.cxx
+++ b/salhelper/source/timer.cxx
@@ -427,6 +427,8 @@ void TimerManager::checkForTimeout()
void TimerManager::run()
{
+ osl_setThreadName("salhelper::TimerManager");
+
setPriority( osl_Thread_PriorityBelowNormal );
while (schedule())
diff --git a/sd/source/ui/remotecontrol/Transmitter.cxx b/sd/source/ui/remotecontrol/Transmitter.cxx
index a217d5841055..d03ff5bdffd5 100644
--- a/sd/source/ui/remotecontrol/Transmitter.cxx
+++ b/sd/source/ui/remotecontrol/Transmitter.cxx
@@ -24,6 +24,8 @@ Transmitter::Transmitter( IBluetoothSocket* aSocket )
void SAL_CALL Transmitter::run()
{
+ osl_setThreadName("bluetooth Transmitter");
+
while ( true )
{
mQueuesNotEmpty.wait();
diff --git a/sdext/source/presenter/PresenterTimer.cxx b/sdext/source/presenter/PresenterTimer.cxx
index 96668e91cf7a..d3362ee2d68d 100644
--- a/sdext/source/presenter/PresenterTimer.cxx
+++ b/sdext/source/presenter/PresenterTimer.cxx
@@ -224,6 +224,8 @@ void TimerScheduler::CancelTask (const sal_Int32 nTaskId)
void SAL_CALL TimerScheduler::run (void)
{
+ osl_setThreadName("sdext::presenter::TimerScheduler");
+
while (true)
{
// Get the current time.
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index d84e68925b88..3b8a9b6e1198 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -2417,6 +2417,8 @@ Updater_Impl::~Updater_Impl()
void SAL_CALL Updater_Impl::run()
{
+ osl_setThreadName("Updater_Impl");
+
mpDocTemplates->doUpdate();
}
diff --git a/sfx2/source/doc/printhelper.cxx b/sfx2/source/doc/printhelper.cxx
index 87e2ca8675ae..70590590b0ef 100644
--- a/sfx2/source/doc/printhelper.cxx
+++ b/sfx2/source/doc/printhelper.cxx
@@ -494,6 +494,8 @@ class ImplUCBPrintWatcher : public ::osl::Thread
*/
void SAL_CALL run() SAL_OVERRIDE
{
+ osl_setThreadName("ImplUCBPrintWatcher");
+
/* SAFE { */
{
SolarMutexGuard aGuard;
diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx
index 12864cc04181..c5e6eaf84179 100644
--- a/svx/source/core/extedit.cxx
+++ b/svx/source/core/extedit.cxx
@@ -68,6 +68,8 @@ IMPL_LINK (ExternalToolEdit, StartListeningEvent, void*, pEvent)
void ExternalToolEdit::threadWorker(void* pThreadData)
{
+ osl_setThreadName("ExternalToolEdit");
+
ExternalToolEdit* pData = (ExternalToolEdit*) pThreadData;
// Make an asynchronous call to listen to the event of temporary image file
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx
index 35041320f03d..32e0116c3031 100644
--- a/svx/source/form/fmsrcimp.cxx
+++ b/svx/source/form/fmsrcimp.cxx
@@ -70,6 +70,8 @@ using namespace ::svxform;
void FmSearchThread::run()
{
+ osl_setThreadName("FmSearchThread");
+
m_pEngine->SearchNextImpl();
};
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index 339b0dfd2464..8c6a4892435b 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -183,6 +183,8 @@ void SAL_CALL SdrGraphicUpdater::onTerminated(void)
void SAL_CALL SdrGraphicUpdater::run(void)
{
+ osl_setThreadName("SdrGraphicUpdater");
+
Graphic aGraphic( ImpLoadLinkedGraphic( maFileName, mrGraphicLink.getReferer(), maFilterName ) );
SolarMutexGuard aSolarGuard;
if ( !mbIsTerminated )
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
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index be5ee82bca9e..bbfe52f755e6 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -50,6 +50,7 @@
#include <cppuhelper/typeprovider.hxx>
#include <osl/conditn.hxx>
#include <osl/module.h>
+#include <osl/thread.h>
#include <osl/mutex.hxx>
#include <rtl/uuid.h>
#include <rtl/process.h>
@@ -596,6 +597,8 @@ extern "C"
{
static void SAL_CALL ToolkitWorkerFunction( void* pArgs )
{
+ osl_setThreadName("VCLXToolkit VCL main thread");
+
VCLXToolkit * pTk = (VCLXToolkit *)pArgs;
bInitedByVCLToolkit = InitVCL();
if( bInitedByVCLToolkit )
diff --git a/ucb/source/ucp/webdav/SerfLockStore.cxx b/ucb/source/ucp/webdav/SerfLockStore.cxx
index cd95a2980bda..5314cee3cfa9 100644
--- a/ucb/source/ucp/webdav/SerfLockStore.cxx
+++ b/ucb/source/ucp/webdav/SerfLockStore.cxx
@@ -49,6 +49,8 @@ protected:
void TickerThread::run()
{
+ osl_setThreadName("http_dav_ucp::TickerThread");
+
SAL_INFO("ucb.ucp.webdav", "TickerThread: start." );
// we have to go through the loop more often to be able to finish ~quickly
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index 6bf08cccd209..f8a1ff90fbde 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -782,6 +782,8 @@ void Moderator::setInputStream(const Reference<XInputStream> &rxInputStream)
void SAL_CALL Moderator::run()
{
+ osl_setThreadName("utl::Moderator");
+
ResultType aResultType;
Any aResult;
sal_Int32 nIOErrorCode = 0;
diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx
index 8c05206206f2..fecc6ada9054 100644
--- a/vcl/unx/generic/printer/printerinfomanager.cxx
+++ b/vcl/unx/generic/printer/printerinfomanager.cxx
@@ -1169,6 +1169,8 @@ static const struct SystemCommandParameters aParms[] =
void SystemQueueInfo::run()
{
+ osl_setThreadName("LPR psp::SystemQueueInfo");
+
char pBuffer[1024];
FILE *pPipe;
std::list< OString > aLines;