Thread Safety of Cpp API Calls

Hello,

I was wondering if there was any documentation explaining if the API calls are thread safe. For example, in our code we have a sort of implementation as follows (obviously the below is a simplified version);

static atomic<bool> isActivated{false};
if (isActivated)
   SetProductData()
   SetProductId()
   SetAppVersion()
   SetLicenseCallback()
   SetCryplexLicenseKey()
   ActivateLicense()
   isActivated = true;

However, it can occur that multiple threads call this at the same time. Therefore we may have multiple threads executing the internals of the above. Can this cause any issues ? Or is Cryplex thread safe and will properly handle this internally ?

Yes I understand this is not a good approach and its preferable not to have this occur. But I was simply wondering on the thread safety.

Thank You in advance

Hi,

Yes, the library is thread-safe. Unless you are using hosted-floating license type, you only need to call ActivateLicense() function once.

Regards,
Adnan