-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add init functions to support thread safe init of impls #102
Conversation
include/aws/checksums/checksums.h
Outdated
* which some tools picked up as thread unsafe. As best practice prefer explicit init | ||
* before using this library. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just say that you must call this? It would be weird trying to maintain where people may or may not call library init. It will be a breaking change, but if in the future someone just adds something to the init, it might break some people if we don't enforce this now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with Waqar. Say it is required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, reworded to make it stronger.
include/aws/checksums/checksums.h
Outdated
* which some tools picked up as thread unsafe. As best practice prefer explicit init | ||
* before using this library. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with Waqar. Say it is required
Co-authored-by: Waqar Ahmed Khan <[email protected]>
Issue #, if available:
Description of changes:
relevant issue aws/aws-sdk-cpp#3350
we lazily initialize impls on the first call. some tools will detect it as thread unsafe, even if in practice it is safe.
add explicit init functions to work around the problem.
In addition some minor cleanup is done on exports header.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.