Commit 7a97e661 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Use the vista thread name

parent c9519063
......@@ -268,13 +268,6 @@ namespace ITA
/// \todo This probably does not have to be atomic as the reset happens in the same thread.
///
ITAAtomicBool m_bResetIndicated = false;
#ifdef WITH_PROFILER
///
/// \brief Name of the thread loop of the CScheduler.
///
std::string m_sThreadName;
#endif
};
} // namespace simulation_scheduler
} // namespace ITA
......
......@@ -191,7 +191,8 @@ namespace ITA
void CMasterSimulationController::PreLoop ( )
{
PROFILER_NAME_THREAD ( "Master Simulation Controller" );
SetThreadName ( "Master Simulation Controller" );
PROFILER_NAME_THREAD ( GetThreadName() );
}
void CMasterSimulationController::filterReplace ( )
......
......@@ -222,6 +222,8 @@ namespace ITA
break;
default:;
}
SetThreadName ( sThreadName );
PROFILER_NAME_THREAD ( sThreadName );
#endif
}
......
......@@ -104,7 +104,7 @@ namespace ITA
void CScheduler::postUpdate ( std::unique_ptr<IUpdateMessage> pUpdateMessage )
{
//PROFILER_FUNCTION ( );
PROFILER_VALUE ( "Enqueued Update to " + m_sThreadName, pUpdateMessage->getID ( ) );
PROFILER_VALUE ( "Enqueued Update to " + GetThreadName ( ), pUpdateMessage->getID ( ) );
m_qUpdateQueue.push ( std::move ( pUpdateMessage ) );
m_evTriggerLoop.SignalEvent ( );
}
......@@ -321,22 +321,23 @@ namespace ITA
switch ( roomAcousticWorker->getFieldOfDuty ( ) )
{
case room_acoustics::FieldOfDuty::directSound:
m_sThreadName = "Direct Sound Scheduler";
SetThreadName ( "Direct Sound Scheduler" );
break;
case room_acoustics::FieldOfDuty::earlyReflections:
m_sThreadName = "Early Reflections Scheduler";
SetThreadName ( "Early Reflections Scheduler" );
break;
case room_acoustics::FieldOfDuty::diffuseDecay:
m_sThreadName = "Diffuse Decay Scheduler";
SetThreadName ( "Diffuse Decay Scheduler" );
break;
default:;
}
PROFILER_NAME_THREAD ( m_sThreadName );
PROFILER_NAME_THREAD ( GetThreadName ( ) );
return;
}
}
PROFILER_NAME_THREAD ( "Scheduler" );
SetThreadName ( "Scheduler" );
PROFILER_NAME_THREAD ( GetThreadName ( ) );
#endif
}
......
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