trick/trick_source/sim_services/VariableServer/VariableServerSession_freeze_init.cpp

17 lines
354 B
C++
Raw Normal View History

2015-02-26 15:02:31 +00:00
#include <iostream>
#include <string.h>
#include "trick/VariableServerSession.hh"
#include "trick/TrickConstant.hh"
2015-02-26 15:02:31 +00:00
int Trick::VariableServerSession::freeze_init() {
if ( _enabled && _copy_mode == VS_COPY_SCHEDULED) {
_freeze_next_tics = _cycle_tics ;
2015-02-26 15:02:31 +00:00
} else {
_freeze_next_tics = TRICK_MAX_LONG_LONG ;
2015-02-26 15:02:31 +00:00
}
return 0 ;
}