 |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
16 #ifndef ACSDKPKCS11_PRIVATE_ERRORCLEANUPGUARD_H_
17 #define ACSDKPKCS11_PRIVATE_ERRORCLEANUPGUARD_H_
22 namespace acsdkPkcs11 {
42 inline ErrorCleanupGuard(
bool& successFlag, std::function<
void()>&& cleanupFunction) noexcept :
43 FinallyGuard{std::bind(executeCleanup, std::ref(successFlag), std::move(cleanupFunction))} {
53 inline static void executeCleanup(
bool& successFlag,
const std::function<
void()>& cleanupFunction) noexcept {
63 #endif // ACSDKPKCS11_PRIVATE_ERRORCLEANUPGUARD_H_
ErrorCleanupGuard(bool &successFlag, std::function< void()> &&cleanupFunction) noexcept
Prepares lambda for execution.
Definition: ErrorCleanupGuard.h:42
Definition: FinallyGuard.h:45
Error cleanup function on error.
Definition: ErrorCleanupGuard.h:31
FinallyGuard(const std::function< void()> &finallyFunction)
Definition: FinallyGuard.h:64
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0