mirror of
https://github.com/nasa/trick.git
synced 2025-06-18 23:28:26 +00:00
Refactor and test Variable Server.
- Split VariableServerThread into VariableServerSession and VariableReference classes - Use C++ streams for data handling - Unit tests
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
|
||||
#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 ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user