mirror of
https://github.com/nasa/trick.git
synced 2025-06-19 07:38:26 +00:00
Refactor and test Variable Server.
- Split VariableServerThread into VariableServerSession and VariableReference classes - Use C++ streams for data handling - Unit tests
This commit is contained in:
@ -9,10 +9,10 @@ int Trick::VariableServer::restart() {
|
||||
if ( listen_thread.get_pthread_id() == 0 ) {
|
||||
listen_thread.create_thread() ;
|
||||
}
|
||||
std::map < pthread_t , VariableServerListenThread * >::iterator it ;
|
||||
for( it = additional_listen_threads.begin() ; it != additional_listen_threads.end() ; it++ ) {
|
||||
(*it).second->restart() ;
|
||||
}
|
||||
// std::map < pthread_t , VariableServerListenThread * >::iterator it ;
|
||||
// for( it = additional_listen_threads.begin() ; it != additional_listen_threads.end() ; it++ ) {
|
||||
// (*it).second->restart() ;
|
||||
// }
|
||||
return 0 ;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user