Kaydet (Commit) 961d061b authored tarafından Michael Stahl's avatar Michael Stahl

set names on some UNIX-only threads

Change-Id: I4c247916256618312e7d98673d9db4d26e26fa39
üst d386f887
...@@ -196,6 +196,8 @@ MediatorListener::~MediatorListener() ...@@ -196,6 +196,8 @@ MediatorListener::~MediatorListener()
void MediatorListener::run() void MediatorListener::run()
{ {
osl_setThreadName("MediatorListener");
bool bRun = true; bool bRun = true;
while( schedule() && m_pMediator && bRun ) while( schedule() && m_pMediator && bRun )
{ {
......
...@@ -181,6 +181,8 @@ ScannerThread::~ScannerThread() ...@@ -181,6 +181,8 @@ ScannerThread::~ScannerThread()
void ScannerThread::run() void ScannerThread::run()
{ {
osl_setThreadName("ScannerThread");
osl::MutexGuard aGuard( m_pHolder->m_aProtector ); osl::MutexGuard aGuard( m_pHolder->m_aProtector );
BitmapTransporter* pTransporter = new BitmapTransporter; BitmapTransporter* pTransporter = new BitmapTransporter;
Reference< XInterface > aIf( static_cast< OWeakObject* >( pTransporter ) ); Reference< XInterface > aIf( static_cast< OWeakObject* >( pTransporter ) );
......
...@@ -190,6 +190,8 @@ extern "C" { ...@@ -190,6 +190,8 @@ extern "C" {
static void ChildStatusProc(void *pData) static void ChildStatusProc(void *pData)
{ {
osl_setThreadName("osl_executeProcess");
pid_t pid = -1; pid_t pid = -1;
int status = 0; int status = 0;
int channel[2] = { -1, -1 }; int channel[2] = { -1, -1 };
......
...@@ -97,6 +97,7 @@ extern "C" ...@@ -97,6 +97,7 @@ extern "C"
static void call_SelectionManager_runDragExecute( void * pMgr ) static void call_SelectionManager_runDragExecute( void * pMgr )
{ {
osl_setThreadName("SelectionManager::runDragExecute()");
SelectionManager::runDragExecute( pMgr ); SelectionManager::runDragExecute( pMgr );
} }
} }
......
...@@ -111,6 +111,7 @@ struct GetPPDAttribs ...@@ -111,6 +111,7 @@ struct GetPPDAttribs
extern "C" { extern "C" {
static void getPPDWorker(void* pData) static void getPPDWorker(void* pData)
{ {
osl_setThreadName("CUPSManager getPPDWorker");
GetPPDAttribs* pAttribs = (GetPPDAttribs*)pData; GetPPDAttribs* pAttribs = (GetPPDAttribs*)pData;
pAttribs->executeCall(); pAttribs->executeCall();
} }
...@@ -172,6 +173,7 @@ extern "C" ...@@ -172,6 +173,7 @@ extern "C"
{ {
static void run_dest_thread_stub( void* pThis ) static void run_dest_thread_stub( void* pThis )
{ {
osl_setThreadName("CUPSManager cupsGetDests");
CUPSManager::runDestThread( pThis ); CUPSManager::runDestThread( pThis );
} }
} }
......
...@@ -103,6 +103,8 @@ uno::Any SAL_CALL UnxFilePickerCommandThread::getValue() ...@@ -103,6 +103,8 @@ uno::Any SAL_CALL UnxFilePickerCommandThread::getValue()
void SAL_CALL UnxFilePickerCommandThread::run() void SAL_CALL UnxFilePickerCommandThread::run()
{ {
osl_setThreadName("UnxFilePickerCommandThread");
if ( m_nReadFD < 0 ) if ( m_nReadFD < 0 )
return; return;
......
...@@ -72,6 +72,8 @@ void SAL_CALL UnxFilePickerNotifyThread::fileSelectionChanged() ...@@ -72,6 +72,8 @@ void SAL_CALL UnxFilePickerNotifyThread::fileSelectionChanged()
void SAL_CALL UnxFilePickerNotifyThread::run() void SAL_CALL UnxFilePickerNotifyThread::run()
{ {
osl_setThreadName("UnxFilePickerNotifyThread");
do { do {
m_aNotifyCondition.reset(); m_aNotifyCondition.reset();
m_aNotifyCondition.wait(); m_aNotifyCondition.wait();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment