Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
ApplicationCore
Commits
cd2a177c
Commit
cd2a177c
authored
4 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
use cerr instead of cout when printing TestStalled error message
parent
c4c9bd6d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Application.cc
+8
-8
8 additions, 8 deletions
src/Application.cc
with
8 additions
and
8 deletions
src/Application.cc
+
8
−
8
View file @
cd2a177c
...
...
@@ -1155,35 +1155,35 @@ void Application::testableModeLock(const std::string& name) {
if
(
getInstance
().
testableMode_repeatingMutexOwner
>
100
)
{
// print an informative message first, which lists also all variables
// currently containing unread data.
std
::
c
out
<<
"*** Tests are stalled due to data which has been sent but "
std
::
c
err
<<
"*** Tests are stalled due to data which has been sent but "
"not received."
<<
std
::
endl
;
std
::
c
out
<<
" The following variables still contain unread values or "
std
::
c
err
<<
" The following variables still contain unread values or "
"had data loss due to a queue overflow:"
<<
std
::
endl
;
for
(
auto
&
pair
:
Application
::
getInstance
().
testableMode_perVarCounter
)
{
if
(
pair
.
second
>
0
)
{
std
::
c
out
<<
" - "
<<
Application
::
getInstance
().
testableMode_names
[
pair
.
first
]
<<
" ["
std
::
c
err
<<
" - "
<<
Application
::
getInstance
().
testableMode_names
[
pair
.
first
]
<<
" ["
<<
getInstance
().
testableMode_processVars
[
pair
.
first
]
->
getId
()
<<
"]"
;
// check if process variable still has data in the queue
try
{
if
(
getInstance
().
testableMode_processVars
[
pair
.
first
]
->
readNonBlocking
())
{
std
::
c
out
<<
" (unread data in queue)"
;
std
::
c
err
<<
" (unread data in queue)"
;
}
else
{
std
::
c
out
<<
" (data loss)"
;
std
::
c
err
<<
" (data loss)"
;
}
}
catch
(
std
::
logic_error
&
)
{
// if we receive a logic_error in readNonBlocking() it just means
// another thread is waiting on a TransferFuture of this variable,
// and we actually were not allowed to read...
std
::
c
out
<<
" (data loss)"
;
std
::
c
err
<<
" (data loss)"
;
}
std
::
c
out
<<
std
::
endl
;
std
::
c
err
<<
std
::
endl
;
}
}
std
::
c
out
<<
"(end of list)"
<<
std
::
endl
;
std
::
c
err
<<
"(end of list)"
<<
std
::
endl
;
// Check for modules waiting for initial values (prints nothing if there are no such modules)
getInstance
().
circularDependencyDetector
.
printWaiters
();
// throw a specialised exception to make sure whoever catches it really
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment