Commit 08a4e2ec authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add better handling for exception, fix runtime error

parent d31f291d
......@@ -64,9 +64,6 @@ namespace ITA
while ( isBusy ( ) ) VistaTimeUtils::Sleep ( 100 );
StopGently ( true );
DEBUG_PRINTF ( "[Thread Worker FOD %d]\t Thread Ended\n", as_integer ( m_eFieldOfDuty ) );
}
bool CWorkerThread::isBusy ( )
......@@ -182,15 +179,21 @@ namespace ITA
}
catch ( ITAException& e )
{
std::cerr << e.ToString ( ) << "\n";
std::cerr << e.ToString ( );
}
PROFILER_END_SECTION ( );
// Post the result back to the scheduler.
R_INFO ( "raven::WorkerThread:\tSending Task %i, SimType %i to scheduler\n", pTask->uiID, pTask->eSimulationType );
m_pParentScheduler->handleSimulationFinished ( convertSimulationResult ( std::move ( pResult ), pTask ) );
try
{
m_pParentScheduler->handleSimulationFinished ( convertSimulationResult ( std::move ( pResult ), pTask ) );
}
catch ( ITAException& e )
{
std::cerr << e.ToString ( );
}
R_INFO ( "raven::WorkerThread:\tTask send to scheduler\n" );
// release the current task
......
Supports Markdown
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