Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITASimulationScheduler
Commits
08a4e2ec
Commit
08a4e2ec
authored
Jul 20, 2020
by
Pascal Palenda
Browse files
Add better handling for exception, fix runtime error
parent
d31f291d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ITA/simulation_scheduler/room_acoustics/raven/worker_thread.cpp
View file @
08a4e2ec
...
...
@@ -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:
\t
Sending 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:
\t
Task send to scheduler
\n
"
);
// release the current task
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment