本文整理汇总了C++中std::shared_ptr::CleanupStaticState方法的典型用法代码示例。如果您正苦于以下问题:C++ shared_ptr::CleanupStaticState方法的具体用法?C++ shared_ptr::CleanupStaticState怎么用?C++ shared_ptr::CleanupStaticState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类std::shared_ptr
的用法示例。
在下文中一共展示了shared_ptr::CleanupStaticState方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void Aws::Utils::Crypto::CleanupCrypto()
{
if(s_MD5Factory)
{
s_MD5Factory->CleanupStaticState();
s_MD5Factory = nullptr;
}
if(s_Sha256Factory)
{
s_Sha256Factory->CleanupStaticState();
s_Sha256Factory = nullptr;
}
if(s_Sha256HMACFactory)
{
s_Sha256HMACFactory->CleanupStaticState();
s_Sha256HMACFactory = nullptr;
}
if(s_AES_CBCFactory)
{
s_AES_CBCFactory->CleanupStaticState();
s_AES_CBCFactory = nullptr;
}
if(s_AES_CTRFactory)
{
s_AES_CTRFactory->CleanupStaticState();
s_AES_CTRFactory = nullptr;
}
if(s_AES_GCMFactory)
{
s_AES_GCMFactory->CleanupStaticState();
s_AES_GCMFactory = nullptr;
}
if(s_AES_KeyWrapFactory)
{
s_AES_KeyWrapFactory->CleanupStaticState();
s_AES_KeyWrapFactory = nullptr;
}
if(s_SecureRandomFactory)
{
s_SecureRandom = nullptr;
s_SecureRandomFactory->CleanupStaticState();
s_SecureRandomFactory = nullptr;
}
}