Commit 9a08c950 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add some debug output for worker thread

parent 533b15af
......@@ -13,6 +13,7 @@
// ITA includes
#include "ITAException.h"
#include "ITALog.h"
#include <ITADebug.h>
namespace ITA
{
......@@ -63,6 +64,9 @@ 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 ( )
......@@ -161,7 +165,9 @@ namespace ITA
try
{
// Simulate (blocking)
DEBUG_PRINTF ( "[Thread Worker FOD %d]\t Simulation Started\n", as_integer(m_eFieldOfDuty) );
m_pSimulator->compute ( pTask, pResult.get ( ) );
DEBUG_PRINTF ( "[Thread Worker FOD %d]\t Simulation Finished\n", as_integer ( m_eFieldOfDuty ) );
}
catch ( ITAException& e )
{
......
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