Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary field rtiSynchronized removed #149

Merged
merged 3 commits into from
Apr 17, 2023
Merged

Conversation

byeonggiljun
Copy link
Collaborator

The variable "rtiSynchronized" is only used at

if (this._isRTISynchronized() || tagBarrier !== null) {

This prevents the upstream federate with a physical action to schedule dummy events to advance the downstream federate's tag.

I think we can simply remove this concept. The code above is a part of _canProceed() and this function is called in the _next() function. However, there is no comparison like if (this.isRTISynchronized()... in the lf_next_locked() of the reactor-c.

@byeonggiljun byeonggiljun requested review from hokeun and lhstrh April 17, 2023 01:00
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lhstrh lhstrh changed the title Remove the unnecessary variable, rtiSynchronized. Unnecessary field rtiSynchronized removed Apr 17, 2023
@lhstrh lhstrh merged commit 5a5f516 into master Apr 17, 2023
@lhstrh lhstrh deleted the remove-rtiSynchronized branch April 17, 2023 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants