Is there a way to know Aws::InitAPI has been called? #2406
-
As multiple call to Aws::InitAPI() could lead to problems, is there a way to know Aws::InitAPI() has been called? I mean by checking a variable or call a function to know if Aws::InitAPI() has been called? Because our code is a library provided to an application, if an application has initizlied Aws environment, we should not do it again. Currently how could we know the upper application has called Aws::InitAPI() or not?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Soberingly, there seems to be no integrated path here. The topic has already been discussed in various threads. For example here I couldn't find a real result - only various hints that init may only be called once per application and shutdown at the end and that one should refrain from static inits (because the destructor order is undefined). |
Beta Was this translation helpful? Give feedback.
-
As @WolfgangVogl stated, there is currently no way for this to be tracked. I have opened a feature request here with a proposed solution for this. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
As @WolfgangVogl stated, there is currently no way for this to be tracked. I have opened a feature request here with a proposed solution for this.