diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-22 21:53:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-25 13:21:58 +0200 |
commit | 961d061ba177a79fe9f91404e3cd4d0d0bc30a87 (patch) | |
tree | 4d9338f46e3df90ccca35e7513b262077767ff57 /vcl/unx | |
parent | d386f88774df977691f9cb6ab231aa5b085d0b70 (diff) |
set names on some UNIX-only threads
Change-Id: I4c247916256618312e7d98673d9db4d26e26fa39
Diffstat (limited to 'vcl/unx')
-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 |
4 files changed, 7 insertions, 0 deletions
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(); |