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()
void MediatorListener::run()
{
osl_setThreadName("MediatorListener");
bool bRun = true;
while( schedule() && m_pMediator && bRun )
{
......
......@@ -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 ) );
......
......@@ -190,6 +190,8 @@ extern "C" {
static void ChildStatusProc(void *pData)
{
osl_setThreadName("osl_executeProcess");
pid_t pid = -1;
int status = 0;
int channel[2] = { -1, -1 };
......
......@@ -97,6 +97,7 @@ extern "C"
static void call_SelectionManager_runDragExecute( void * pMgr )
{
osl_setThreadName("SelectionManager::runDragExecute()");
SelectionManager::runDragExecute( pMgr );
}
}
......
......@@ -111,6 +111,7 @@ struct GetPPDAttribs
extern "C" {
static void getPPDWorker(void* pData)
{
osl_setThreadName("CUPSManager getPPDWorker");
GetPPDAttribs* pAttribs = (GetPPDAttribs*)pData;
pAttribs->executeCall();
}
......@@ -172,6 +173,7 @@ extern "C"
{
static void run_dest_thread_stub( void* pThis )
{
osl_setThreadName("CUPSManager cupsGetDests");
CUPSManager::runDestThread( pThis );
}
}
......
......@@ -103,6 +103,8 @@ uno::Any SAL_CALL UnxFilePickerCommandThread::getValue()
void SAL_CALL UnxFilePickerCommandThread::run()
{
osl_setThreadName("UnxFilePickerCommandThread");
if ( m_nReadFD < 0 )
return;
......
......@@ -72,6 +72,8 @@ void SAL_CALL UnxFilePickerNotifyThread::fileSelectionChanged()
void SAL_CALL UnxFilePickerNotifyThread::run()
{
osl_setThreadName("UnxFilePickerNotifyThread");
do {
m_aNotifyCondition.reset();
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