Code Review
/
ric-plt
/
xapp-frame-cpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add const qualifier to constructor port parameter
[ric-plt/xapp-frame-cpp.git]
/
src
/
xapp
/
xapp.cpp
diff --git
a/src/xapp/xapp.cpp
b/src/xapp/xapp.cpp
index
02cea30
..
cb14f2e
100644
(file)
--- a/
src/xapp/xapp.cpp
+++ b/
src/xapp/xapp.cpp
@@
-54,8
+54,8
@@
If port is nil, then the default port is used (4560).
*/
If port is nil, then the default port is used (4560).
*/
-Xapp::Xapp( char* port, bool wait4table ) : Messenger( port, wait4table ) {
- //
what's left to do?
+Xapp::Xapp( c
onst c
har* port, bool wait4table ) : Messenger( port, wait4table ) {
+ //
nothing to do; all handled in Messenger constructor
}
/*
}
/*
@@
-72,7
+72,6
@@
Xapp::~Xapp() {
function won't return unless that listener crashes.
*/
void Xapp::Run( int nthreads ) {
function won't return unless that listener crashes.
*/
void Xapp::Run( int nthreads ) {
- int joined; // at end, number of threads joined back
int i;
std::thread** tinfo; // each thread we'll start
int i;
std::thread** tinfo; // each thread we'll start
@@
-87,6
+86,8
@@
void Xapp::Run( int nthreads ) {
for( i = 0; i < nthreads - 1; i++ ) { // wait for others to stop
tinfo[i]->join();
}
for( i = 0; i < nthreads - 1; i++ ) { // wait for others to stop
tinfo[i]->join();
}
+
+ delete tinfo;
}
/*
}
/*