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

flush tw_output calls on tw_error? #76

Open
JohnPJenkins opened this issue Oct 27, 2015 · 0 comments
Open

flush tw_output calls on tw_error? #76

JohnPJenkins opened this issue Oct 27, 2015 · 0 comments

Comments

@JohnPJenkins
Copy link

While reviewing #75 I thought of the following - tw_suspend may or may not cause a tw_error down the line. Since tw_suspend doesn't take output arguments (only an errno equivalent), tw_output would be a good alternative as it is rollback-aware - it only gets printed out if the suspend persists through the rest of the simulation. However, if tw_error is called before the output buffer is flushed (ie through short-circuiting the simulation), then the output is lost.

Can we flush tw_output when erroring out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant