diff options
-rw-r--r-- | extensions/source/plugin/unx/mediator.cxx | 2 | ||||
-rw-r--r-- | extensions/source/scanner/scanunx.cxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/process.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_selection.cxx | 1 | ||||
-rw-r--r-- | vcl/unx/generic/printer/cupsmgr.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/kde/UnxCommandThread.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/kde/UnxNotifyThread.cxx | 2 |
7 files changed, 13 insertions, 0 deletions
diff --git a/extensions/source/plugin/unx/mediator.cxx b/extensions/source/plugin/unx/mediator.cxx index 824880039e31..76045f3724a3 100644 --- a/extensions/source/plugin/unx/mediator.cxx +++ b/extensions/source/plugin/unx/mediator.cxx @@ -196,6 +196,8 @@ MediatorListener::~MediatorListener() void MediatorListener::run() { + osl_setThreadName("MediatorListener"); + bool bRun = true; while( schedule() && m_pMediator && bRun ) { diff --git a/extensions/source/scanner/scanunx.cxx b/extensions/source/scanner/scanunx.cxx index affc65e972a6..125e8c83a9f3 100644 --- a/extensions/source/scanner/scanunx.cxx +++ b/extensions/source/scanner/scanunx.cxx @@ -181,6 +181,8 @@ ScannerThread::~ScannerThread() void ScannerThread::run() { + osl_setThreadName("ScannerThread"); + osl::MutexGuard aGuard( m_pHolder->m_aProtector ); BitmapTransporter* pTransporter = new BitmapTransporter; Reference< XInterface > aIf( static_cast< OWeakObject* >( pTransporter ) ); diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx index eb2458643c6e..8503ff0deb75 100644 --- a/sal/osl/unx/process.cxx +++ b/sal/osl/unx/process.cxx @@ -190,6 +190,8 @@ extern "C" { static void ChildStatusProc(void *pData) { + osl_setThreadName("osl_executeProcess"); + pid_t pid = -1; int status = 0; int channel[2] = { -1, -1 }; diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx index a24d373025e9..3bcc984f13c4 100644 --- a/vcl/unx/generic/dtrans/X11_selection.cxx +++ b/vcl/unx/generic/dtrans/X11_selection.cxx @@ -97,6 +97,7 @@ extern "C" static void call_SelectionManager_runDragExecute( void * pMgr ) { + osl_setThreadName("SelectionManager::runDragExecute()"); SelectionManager::runDragExecute( pMgr ); } } diff --git a/vcl/unx/generic/printer/cupsmgr.cxx b/vcl/unx/generic/printer/cupsmgr.cxx index d39196e15cf0..99417d8304f5 100644 --- a/vcl/unx/generic/printer/cupsmgr.cxx +++ b/vcl/unx/generic/printer/cupsmgr.cxx @@ -111,6 +111,7 @@ struct GetPPDAttribs extern "C" { static void getPPDWorker(void* pData) { + osl_setThreadName("CUPSManager getPPDWorker"); GetPPDAttribs* pAttribs = (GetPPDAttribs*)pData; pAttribs->executeCall(); } @@ -172,6 +173,7 @@ extern "C" { static void run_dest_thread_stub( void* pThis ) { + osl_setThreadName("CUPSManager cupsGetDests"); CUPSManager::runDestThread( pThis ); } } diff --git a/vcl/unx/kde/UnxCommandThread.cxx b/vcl/unx/kde/UnxCommandThread.cxx index 7b907dea9c66..84bc2d8a94c9 100644 --- a/vcl/unx/kde/UnxCommandThread.cxx +++ b/vcl/unx/kde/UnxCommandThread.cxx @@ -103,6 +103,8 @@ uno::Any SAL_CALL UnxFilePickerCommandThread::getValue() void SAL_CALL UnxFilePickerCommandThread::run() { + osl_setThreadName("UnxFilePickerCommandThread"); + if ( m_nReadFD < 0 ) return; diff --git a/vcl/unx/kde/UnxNotifyThread.cxx b/vcl/unx/kde/UnxNotifyThread.cxx index f500767e9d1d..3b97014c4a71 100644 --- a/vcl/unx/kde/UnxNotifyThread.cxx +++ b/vcl/unx/kde/UnxNotifyThread.cxx @@ -72,6 +72,8 @@ void SAL_CALL UnxFilePickerNotifyThread::fileSelectionChanged() void SAL_CALL UnxFilePickerNotifyThread::run() { + osl_setThreadName("UnxFilePickerNotifyThread"); + do { m_aNotifyCondition.reset(); m_aNotifyCondition.wait(); |