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( const char* port, bool wait4table ) : Messenger( port, wait4table ) {
+ // nothing to do; all handled in Messenger constructor
}
/*
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
for( i = 0; i < nthreads - 1; i++ ) { // wait for others to stop
tinfo[i]->join();
}
+
+ delete[] tinfo;
}
/*