2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <string.h>
|
|
|
|
|
2022-08-23 18:47:56 +00:00
|
|
|
#include "trick/VariableServerSession.hh"
|
2015-06-01 15:28:29 +00:00
|
|
|
#include "trick/TrickConstant.hh"
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2022-08-23 18:47:56 +00:00
|
|
|
int Trick::VariableServerSession::freeze_init() {
|
2023-03-20 22:53:01 +00:00
|
|
|
if ( _enabled && _copy_mode == VS_COPY_SCHEDULED) {
|
|
|
|
_freeze_next_tics = _cycle_tics ;
|
2015-02-26 15:02:31 +00:00
|
|
|
} else {
|
2023-03-20 22:53:01 +00:00
|
|
|
_freeze_next_tics = TRICK_MAX_LONG_LONG ;
|
2015-02-26 15:02:31 +00:00
|
|
|
}
|
|
|
|
return 0 ;
|
|
|
|
}
|
|
|
|
|