trick/trick_source/sim_services/VariableServer/VariableServerSession_freeze_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

17 lines
349 B
C++

#include <iostream>
#include <string.h>
#include "trick/VariableServerSession.hh"
#include "trick/TrickConstant.hh"
int Trick::VariableServerSession::freeze_init() {
if ( enabled && copy_mode == VS_COPY_SCHEDULED) {
freeze_next_tics = cycle_tics ;
} else {
freeze_next_tics = TRICK_MAX_LONG_LONG ;
}
return 0 ;
}