![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <WaitEvent.h>
Public Member Functions | |
WaitEvent () | |
void | wakeUp () |
bool | wait (const std::chrono::milliseconds &timeout) |
void | reset () |
Class that can be used to wait for an event.
wakeUp
call, any call to wait
will no longer block. Use reset()
to reset the internal state and allow wait to block again. alexaClientSDK::avsCommon::utils::WaitEvent::WaitEvent | ( | ) |
Constructor.
void alexaClientSDK::avsCommon::utils::WaitEvent::reset | ( | ) |
Reset the event occurrence flag.
std::cv_status alexaClientSDK::mediaPlayer::android::test::WaitEvent::wait | ( | const std::chrono::milliseconds & | timeout | ) |
Wait for wake up event.
timeout | The maximum amount of time to wait for the event. |
true
if wakeUp has been called within the timeout; false
otherwise. void alexaClientSDK::mediaPlayer::android::test::WaitEvent::wakeUp | ( | ) |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0