perfsrv/analyzetool/kerneleventhandler/src/analyzetooleventhandler.cpp
changeset 55 f2950aff7424
parent 48 516af714ebb4
equal deleted inserted replaced
48:516af714ebb4 55:f2950aff7424
   331     Kern::MutexWait( *iHandlerMutex );
   331     Kern::MutexWait( *iHandlerMutex );
   332 
   332 
   333     // Aqcuire the data mutex
   333     // Aqcuire the data mutex
   334     Kern::MutexWait( *iDataMutex );
   334     Kern::MutexWait( *iDataMutex );
   335     
   335     
   336     aInfo.iProcessId = aThread->iOwningProcess->iId;
   336     if ( aThread )
   337     TBool alone( aThread->iOwningProcess->iThreadQ.First()->Alone() );
   337         {
   338     LOGSTR2( "ATDD > Is alone = %d", alone );
   338         aInfo.iProcessId = aThread->iOwningProcess->iId;
   339     
   339         TBool alone( aThread->iOwningProcess->iThreadQ.First()->Alone() );
   340     // Check if this our process and is the only thread item.
   340         LOGSTR2( "ATDD > Is alone = %d", alone );
   341     if ( aInfo.iProcessId == iProcessId && !alone )
   341         
   342         {
   342         // Check if this our process and is the only thread item.
   343         if ( aThread )
   343         if ( aInfo.iProcessId == iProcessId && !alone )
   344             {
   344             {
   345             // Set current Thread id
   345             // Set current Thread id
   346             LOGSTR2( "ATDD > Thread ID = %d", aThread->iId );
   346             LOGSTR2( "ATDD > Thread ID = %d", aThread->iId );
   347             aInfo.iThreadId = aThread->iId;
   347             aInfo.iThreadId = aThread->iId;
   348             // Append event to array (beginning of the array)
   348             // Append event to array (beginning of the array)