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

Provide trend data for multiple variables #45

Merged
merged 3 commits into from
Jan 2, 2019

Conversation

eidekrist
Copy link
Member

@eidekrist eidekrist commented Dec 21, 2018

This solves #43, providing trend data for multiple variables.

I also discovered a race condition where three loops were accessing the SimulationStatus struct at the same time, causing a crash when removing all trend variables and simultaneously extracting trend values. Seems to be fixed by adding a mutex-ish lock to the SimulationStatus struct.

Also removed the unused memory info from the JsonResponse struct.

This is linked to cse-client PR #24

@eidekrist eidekrist added the enhancement New feature or request label Dec 21, 2018
@eidekrist eidekrist self-assigned this Dec 21, 2018
Copy link
Member

@ljamt ljamt left a comment

Choose a reason for hiding this comment

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

Looks good! Not sure if the mutex needs to be part of the SimulationStatus struct itself?

@eidekrist
Copy link
Member Author

You are probably right :)

@eidekrist eidekrist merged commit fad2f46 into master Jan 2, 2019
@eidekrist eidekrist deleted the feature/43-trend-data-for-multiple-variables branch January 2, 2019 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants