trick/trick_source/sim_services/VariableServer/VariableServerSession_freeze_init.cpp

17 lines
354 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 ;
}