summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/AffineBridge/AffineBridge.cxx4
-rw-r--r--cppu/source/threadpool/thread.cxx2
2 files changed, 6 insertions, 0 deletions
diff --git a/cppu/source/AffineBridge/AffineBridge.cxx b/cppu/source/AffineBridge/AffineBridge.cxx
index 786e9d9ede2a..24b81275c299 100644
--- a/cppu/source/AffineBridge/AffineBridge.cxx
+++ b/cppu/source/AffineBridge/AffineBridge.cxx
@@ -97,6 +97,8 @@ public:
void InnerThread::run(void)
{
+ osl_setThreadName("UNO AffineBridge InnerThread");
+
m_pAffineBridge->enter();
m_pAffineBridge->innerDispatch();
m_pAffineBridge->leave();
@@ -120,6 +122,8 @@ OuterThread::OuterThread(AffineBridge * threadEnvironment)
void OuterThread::run(void)
{
+ osl_setThreadName("UNO AffineBridge OuterThread");
+
osl::MutexGuard guard(m_pAffineBridge->m_outerMutex);
m_pAffineBridge->m_outerThreadId = getIdentifier();
diff --git a/cppu/source/threadpool/thread.cxx b/cppu/source/threadpool/thread.cxx
index 4924a45e3a92..aed132243b5d 100644
--- a/cppu/source/threadpool/thread.cxx
+++ b/cppu/source/threadpool/thread.cxx
@@ -148,6 +148,8 @@ namespace cppu_threadpool {
void ORequestThread::run()
{
+ osl_setThreadName("cppu_threadpool::ORequestThread");
+
try
{
while ( m_pQueue )