Skip to content

Use per model TF_Status instead of the global one - #201

Merged
serizba merged 1 commit into
serizba: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 into
serizba:masterfrom
ljn917:cppflow2-per-model-status

Conversation

@ljn917

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

@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
Copy Markdown
Owner

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 freeto 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

@ljn917@serizba