From ebf5e56e2020359b648b0fec7bd64befe466e4b4 Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Fri, 18 Oct 2013 18:11:33 +0200 Subject: Name threads for debug purpose Change-Id: Id99ba394b898b7da0057d4a145ce8dce46122782 Signed-off-by: Stephan Bergmann --- vcl/unx/generic/app/sm.cxx | 1 + vcl/unx/generic/dtrans/X11_selection.cxx | 1 + 2 files changed, 2 insertions(+) (limited to 'vcl/unx') diff --git a/vcl/unx/generic/app/sm.cxx b/vcl/unx/generic/app/sm.cxx index bc5c0e70368e..5ff427348b56 100644 --- a/vcl/unx/generic/app/sm.cxx +++ b/vcl/unx/generic/app/sm.cxx @@ -603,6 +603,7 @@ void ICEConnectionObserver::terminate(oslThread iceThread) void ICEConnectionWorker(void * data) { + osl::Thread::setName("ICEConnectionWorker"); ICEConnectionObserver * pThis = static_cast< ICEConnectionObserver * >( data); for (;;) diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx index 8a90cd9d1300..11560fa3d596 100644 --- a/vcl/unx/generic/dtrans/X11_selection.cxx +++ b/vcl/unx/generic/dtrans/X11_selection.cxx @@ -3734,6 +3734,7 @@ void SelectionManager::run( void* pThis ) #if OSL_DEBUG_LEVEL > 1 fprintf(stderr, "SelectionManager::run\n" ); #endif + osl::Thread::setName("SelectionManager"); // dispatch until the cows come home SelectionManager* This = (SelectionManager*)pThis; -- cgit