diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-08-22 17:42:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-08-25 13:21:57 +0200 |
commit | d386f88774df977691f9cb6ab231aa5b085d0b70 (patch) | |
tree | 2e66981b0deab4eddaf3389cd8b7fb6c21004f57 /fpicker/source/win32 | |
parent | b70fb7d704aa721cf7b1f3ce1120f84f89429479 (diff) |
set names on the Win32-only threads
Nice to see what weird threads are running.
Change-Id: Ic9888aa3260d0aeb5858cde5415571ab23c75484
Diffstat (limited to 'fpicker/source/win32')
4 files changed, 10 insertions, 0 deletions
diff --git a/fpicker/source/win32/filepicker/asynceventnotifier.cxx b/fpicker/source/win32/filepicker/asynceventnotifier.cxx index 7d116d71620d..b7df994283a2 100644 --- a/fpicker/source/win32/filepicker/asynceventnotifier.cxx +++ b/fpicker/source/win32/filepicker/asynceventnotifier.cxx @@ -18,6 +18,7 @@ */ #include <osl/diagnose.h> +#include <osl/thread.h> #include "asynceventnotifier.hxx" #include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/ui/dialogs/XFilePickerListener.hpp> @@ -297,6 +298,8 @@ void SAL_CALL CAsyncEventNotifier::run() unsigned int WINAPI CAsyncEventNotifier::ThreadProc(LPVOID pParam) { + osl_setThreadName("fpicker CAsyncEventNotifier::run()"); + CAsyncEventNotifier* pInst = reinterpret_cast< CAsyncEventNotifier* >(pParam); OSL_ASSERT(pInst); diff --git a/fpicker/source/win32/filepicker/asyncrequests.cxx b/fpicker/source/win32/filepicker/asyncrequests.cxx index 228c9ea98a50..e8ca9bcc64d4 100644 --- a/fpicker/source/win32/filepicker/asyncrequests.cxx +++ b/fpicker/source/win32/filepicker/asyncrequests.cxx @@ -152,6 +152,8 @@ void AsyncRequests::triggerRequestThreadAware(const RequestRef& rRequest, void SAL_CALL AsyncRequests::run() { + osl_setThreadName("fpicker::win32::vista::AsyncRequests"); + static const ::sal_Int32 TIME_TO_WAIT_FOR_NEW_REQUESTS = 250; // SYNCHRONIZED -> diff --git a/fpicker/source/win32/filepicker/getfilenamewrapper.cxx b/fpicker/source/win32/filepicker/getfilenamewrapper.cxx index 6e1446d66a7c..34202b017f6c 100644 --- a/fpicker/source/win32/filepicker/getfilenamewrapper.cxx +++ b/fpicker/source/win32/filepicker/getfilenamewrapper.cxx @@ -132,6 +132,8 @@ namespace /* private */ unsigned __stdcall ThreadProc(void* pParam) { + osl_setThreadName("fpicker GetOpenFileName"); + CurDirGuard aGuard; GetFileNameParam* lpgfnp = diff --git a/fpicker/source/win32/folderpicker/MtaFop.cxx b/fpicker/source/win32/folderpicker/MtaFop.cxx index cbab83b6e750..d832ddf0aa3e 100644 --- a/fpicker/source/win32/folderpicker/MtaFop.cxx +++ b/fpicker/source/win32/folderpicker/MtaFop.cxx @@ -18,6 +18,7 @@ */ #include <osl/diagnose.h> +#include <osl/thread.h> #include <osl/conditn.hxx> #include "MtaFop.hxx" @@ -738,6 +739,8 @@ unsigned int CMtaFolderPicker::run( ) unsigned int WINAPI CMtaFolderPicker::StaThreadProc( LPVOID pParam ) { + osl_setThreadName("fpicker CMtaFolderPicker::run()"); + CMtaFolderPicker* pInst = reinterpret_cast<CMtaFolderPicker*>( pParam ); |