summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@libreoffice.org>2013-10-18 18:11:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-11-07 09:33:06 +0100
commitebf5e56e2020359b648b0fec7bd64befe466e4b4 (patch)
treecb11bbe8902ae7447dc9e803168e90f86950ccdf /sd/source
parent117b24dbbd627def07e3fe06438f54172d20618c (diff)
Name threads for debug purpose
Change-Id: Id99ba394b898b7da0057d4a145ce8dce46122782 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx2
-rw-r--r--sd/source/ui/remotecontrol/DiscoveryService.cxx3
2 files changed, 3 insertions, 2 deletions
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 )
{