Closed
Description
Describe the feature
Provide a mechanism to prevent the sdk from breaking when InitAPI
gets called when it has already been initialized.
Related issues/discussions:
- Is there a way to know Aws::InitAPI has been called? #2406
- Multiple calls to InitAPI() / ShutdownAPI()? #456
Use Case
If code is being used in a library then there is currently no way for the library to know if InitAPI
has already been called.
Proposed Solution
This will not/should not be RAII.
Using locks and reference counting this would allow multiple calls of InitAPI
. Changes need to be make on this sdk and with the CRT
Other Information
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change