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:
Jacqueline Deans
2022-08-23 13:47:56 -05:00
parent e89bf083b2
commit c2e42f4ef4
78 changed files with 5021 additions and 2690 deletions

View File

@ -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 ;
}