Skip to content

Commit

Permalink
Define clock sync functions for standalone RTI
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed May 12, 2024
1 parent 45270fa commit f35c5f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/federated/RTI/rti_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,12 @@ void initialize_RTI(rti_remote_t* rti) {
rti_remote->stop_in_progress = false;
}

// The RTI includes clock.c, which requires the following functions that are defined
// in clock-sync.c. But clock-sync.c is not included in the standalone RTI.
// Provide empty implementations of these functions.
void clock_sync_add_offset(instant_t* t) { (void)t; }
void clock_sync_subtract_offset(instant_t* t) { (void)t; }

void free_scheduling_nodes(scheduling_node_t** scheduling_nodes, uint16_t number_of_scheduling_nodes) {
for (uint16_t i = 0; i < number_of_scheduling_nodes; i++) {
// FIXME: Gives error freeing memory not allocated!!!!
Expand Down

0 comments on commit f35c5f1

Please sign in to comment.