Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
f5ff1a8e
Commit
f5ff1a8e
authored
15 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
bug 1303: more outputsection debug info
parent
446b2770
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
RTCP/IONProc/src/ION_main.cc
+1
-1
1 addition, 1 deletion
RTCP/IONProc/src/ION_main.cc
RTCP/IONProc/src/OutputThread.cc
+11
-4
11 additions, 4 deletions
RTCP/IONProc/src/OutputThread.cc
with
12 additions
and
5 deletions
RTCP/IONProc/src/ION_main.cc
+
1
−
1
View file @
f5ff1a8e
...
@@ -461,7 +461,7 @@ void *master_thread(void *)
...
@@ -461,7 +461,7 @@ void *master_thread(void *)
exit
(
1
);
exit
(
1
);
}
}
LOG_DEBUG
(
"lofar__fini: output
thread
joined"
);
LOG_DEBUG
(
"lofar__fini: output
section
joined"
);
}
}
#if defined FLAT_MEMORY
#if defined FLAT_MEMORY
...
...
This diff is collapsed.
Click to expand it.
RTCP/IONProc/src/OutputThread.cc
+
11
−
4
View file @
f5ff1a8e
...
@@ -103,28 +103,35 @@ void OutputThread::mainLoop()
...
@@ -103,28 +103,35 @@ void OutputThread::mainLoop()
doNotRunOnCore0
();
doNotRunOnCore0
();
#endif
#endif
// set the maximum number of concurrent writers
static
Semaphore
semaphore
(
1
);
static
Semaphore
semaphore
(
1
);
while
((
o
=
itsSendQueueActivity
.
remove
())
>=
0
)
{
while
((
o
=
itsSendQueueActivity
.
remove
())
>=
0
)
{
struct
OutputThread
::
SingleOutput
&
output
=
itsOutputs
[
o
];
struct
OutputThread
::
SingleOutput
&
output
=
itsOutputs
[
o
];
std
::
cout
<<
"OutputThread: pop queue "
<<
o
<<
std
::
endl
;
data
=
output
.
sendQueue
.
remove
();
data
=
output
.
sendQueue
.
remove
();
std
::
cout
<<
"OutputThread: lower semaphore "
<<
std
::
endl
;
semaphore
.
down
();
try
{
try
{
s
emaphore
.
down
()
;
s
td
::
cout
<<
"OutputThread: write data for queue "
<<
o
<<
std
::
endl
;
// write header: nr of output
// write header: nr of output
itsStreamToStorage
->
write
(
&
o
,
sizeof
o
);
itsStreamToStorage
->
write
(
&
o
,
sizeof
o
);
// write data, including serial nr
// write data, including serial nr
data
->
write
(
itsStreamToStorage
,
true
);
data
->
write
(
itsStreamToStorage
,
true
);
semaphore
.
up
();
output
.
freeQueue
.
append
(
data
);
}
catch
(...)
{
}
catch
(...)
{
semaphore
.
up
();
output
.
freeQueue
.
append
(
data
);
output
.
freeQueue
.
append
(
data
);
throw
;
throw
;
}
}
std
::
cout
<<
"OutputThread: raise semaphore and wait for next element "
<<
std
::
endl
;
semaphore
.
up
();
output
.
freeQueue
.
append
(
data
);
}
}
}
}
...
...
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