Skip to content

Reference counting of InitAPI #2411

Closed
Closed
@jmklix

Description

@jmklix

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions