diff options
author | Arnaud Versini <arnaud.versini@libreoffice.org> | 2013-10-18 18:11:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-07 09:33:06 +0100 |
commit | ebf5e56e2020359b648b0fec7bd64befe466e4b4 (patch) | |
tree | cb11bbe8902ae7447dc9e803168e90f86950ccdf | |
parent | 117b24dbbd627def07e3fe06438f54172d20618c (diff) |
Name threads for debug purpose
Change-Id: Id99ba394b898b7da0057d4a145ce8dce46122782
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | sal/rtl/alloc_cache.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/BluetoothServer.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/DiscoveryService.cxx | 3 | ||||
-rw-r--r-- | vcl/unx/generic/app/sm.cxx | 1 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_selection.cxx | 1 |
5 files changed, 7 insertions, 2 deletions
diff --git a/sal/rtl/alloc_cache.cxx b/sal/rtl/alloc_cache.cxx index 138315533ec7..561880f0b321 100644 --- a/sal/rtl/alloc_cache.cxx +++ b/sal/rtl/alloc_cache.cxx @@ -23,6 +23,7 @@ #include "internal/rtllifecycle.h" #include "sal/macros.h" #include "osl/diagnose.h" +#include <osl/thread.hxx> #include <cassert> #include <string.h> @@ -1507,6 +1508,7 @@ static DWORD WINAPI #endif /* SAL_UNX || SAL_W32 */ rtl_cache_wsupdate_all (void * arg) { + osl::Thread::setName("rtl_cache_wsupdate_all"); unsigned int seconds = sal::static_int_cast< unsigned int >( reinterpret_cast< sal_uIntPtr >(arg)); diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index 9797f3953906..54bc85a8f01a 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -684,7 +684,7 @@ void BluetoothServer::cleanupCommunicators() void SAL_CALL BluetoothServer::run() { SAL_INFO( "sdremote.bluetooth", "BluetoothServer::run called" ); - + osl::Thread::setName("BluetoothServer"); #ifdef LINUX_BLUETOOTH DBusConnection *pConnection = dbusConnectToNameOnBus(); if( !pConnection ) diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx index f72c3b861339..26da31127c36 100644 --- a/sd/source/ui/remotecontrol/DiscoveryService.cxx +++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx @@ -128,7 +128,8 @@ DiscoveryService::~DiscoveryService() void SAL_CALL DiscoveryService::run() { - // Kept for backwrad compatibility + osl::Thread::setName("DiscoveryService"); + // Kept for backwrad compatibility char aBuffer[BUFFER_SIZE]; while ( true ) { 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; |