AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Public Attributes | List of all members
alexaClientSDK::avsCommon::utils::threading::test::SlowDestructor Struct Reference

Used by futureWaitsForTaskCleanup delay and timestamp the time of lambda parameter destruction. More...

Public Member Functions

 SlowDestructor ()
 Constructor. More...
 
 ~SlowDestructor ()
 Destructor which delays destruction, timestamps, and notifies a condition variable when it is done. More...
 

Public Attributes

std::atomic< bool > * cleanedUp
 

Detailed Description

Used by futureWaitsForTaskCleanup delay and timestamp the time of lambda parameter destruction.

Constructor & Destructor Documentation

◆ SlowDestructor()

alexaClientSDK::avsCommon::utils::threading::test::SlowDestructor::SlowDestructor ( )
inline

Constructor.

◆ ~SlowDestructor()

alexaClientSDK::avsCommon::utils::threading::test::SlowDestructor::~SlowDestructor ( )
inline

Destructor which delays destruction, timestamps, and notifies a condition variable when it is done.

Member Data Documentation

◆ cleanedUp

std::atomic<bool>* alexaClientSDK::avsCommon::utils::threading::test::SlowDestructor::cleanedUp
mutable

Boolean indicating destruction is completed (if != nullptr). Mutable so that a lambda can write to it in a SlowDestructor parameter that is captured by value.


The documentation for this struct was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0