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 /extensions | |
parent | d386f88774df977691f9cb6ab231aa5b085d0b70 (diff) |
set names on some UNIX-only threads
Change-Id: I4c247916256618312e7d98673d9db4d26e26fa39
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/plugin/unx/mediator.cxx | 2 | ||||
-rw-r--r-- | extensions/source/scanner/scanunx.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/extensions/source/plugin/unx/mediator.cxx b/extensions/source/plugin/unx/mediator.cxx index 824880039e31..76045f3724a3 100644 --- a/extensions/source/plugin/unx/mediator.cxx +++ b/extensions/source/plugin/unx/mediator.cxx @@ -196,6 +196,8 @@ MediatorListener::~MediatorListener() void MediatorListener::run() { + osl_setThreadName("MediatorListener"); + bool bRun = true; while( schedule() && m_pMediator && bRun ) { diff --git a/extensions/source/scanner/scanunx.cxx b/extensions/source/scanner/scanunx.cxx index affc65e972a6..125e8c83a9f3 100644 --- a/extensions/source/scanner/scanunx.cxx +++ b/extensions/source/scanner/scanunx.cxx @@ -181,6 +181,8 @@ ScannerThread::~ScannerThread() void ScannerThread::run() { + osl_setThreadName("ScannerThread"); + osl::MutexGuard aGuard( m_pHolder->m_aProtector ); BitmapTransporter* pTransporter = new BitmapTransporter; Reference< XInterface > aIf( static_cast< OWeakObject* >( pTransporter ) ); |