trick/trick_source/sim_services/VariableServer/VariableServer_init.cpp
Jacqueline Deans c2e42f4ef4 Refactor and test Variable Server.
- Split VariableServerThread into VariableServerSession and VariableReference classes
- Use C++ streams for data handling
- Unit tests
2023-06-26 12:23:58 -05:00

18 lines
385 B
C++

#include "trick/VariableServer.hh"
#include "trick/exec_proto.hh"
int Trick::VariableServer::init() {
/* start up a thread for the input processor variable server */
if ( enabled ) {
int ret = listen_thread.check_and_move_listen_device() ;
if ( ret != 0 ) {
return ret ;
}
listen_thread.create_thread() ;
}
return(0) ;
}