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