Skip to content

Use per model TF_Status instead of the global one#201

Merged
serizba merged 1 commit intoserizba:masterfrom
ljn917:cppflow2-per-model-status
May 26, 2022
Merged

Use per model TF_Status instead of the global one#201
serizba merged 1 commit intoserizba:masterfrom
ljn917:cppflow2-per-model-status

Conversation

@ljn917
Copy link
Contributor

@ljn917 ljn917 commented May 25, 2022

This avoids the initialization order issues when people build cppflow into a library, e.g. a dll.

Should fix #132, #195, #163, #131, #190, #154

This avoids the "static initialization order fiasco" when people build
cppflow into a library.
@ljn917
Copy link
Contributor Author

ljn917 commented May 25, 2022

@serizba I only tested this on Linux (gcc), but many of these issues were reported on Windows related to building into a dll. I am not sure if there is a good way to test it.

@serizba
Copy link
Owner

serizba commented May 26, 2022

Thanks @ljn917

I haven't tried on Windows, but I will merge anyway, as I don't think this PR may create additional problems. People from the related issues can comment if this fixed their errors.

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

Successfully merging this pull request may close these issues.

2 participants