trick/trick_source/sim_services/VariableServer/VariableServer_init.cpp

18 lines
385 B
C++
Raw Normal View History

2015-02-26 15:02:31 +00:00
#include "trick/VariableServer.hh"
#include "trick/exec_proto.hh"
2015-02-26 15:02:31 +00:00
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() ;
2015-02-26 15:02:31 +00:00
if ( ret != 0 ) {
return ret ;
}
listen_thread.create_thread() ;
}
return(0) ;
}