AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Static Public Attributes | List of all members
alexaClientSDK::mediaPlayer::android::test::WaitEvent Class Reference

Class that can be used to wait for an event. More...

Public Member Functions

void wakeUp ()
 Wake up a thread that is waiting for this event. More...
 
std::cv_status wait (const std::chrono::milliseconds &timeout=DEFAULT_TIMEOUT)
 

Static Public Attributes

static const std::chrono::seconds DEFAULT_TIMEOUT {10}
 The default timeout for an expected event. More...
 

Detailed Description

Class that can be used to wait for an event.

Member Function Documentation

◆ wait()

std::cv_status alexaClientSDK::mediaPlayer::android::test::WaitEvent::wait ( const std::chrono::milliseconds &  timeout = DEFAULT_TIMEOUT)

Wait for wake up event.

Parameters
timeoutThe maximum amount of time to wait for the event.

◆ wakeUp()

void alexaClientSDK::mediaPlayer::android::test::WaitEvent::wakeUp ( )

Wake up a thread that is waiting for this event.

Member Data Documentation

◆ DEFAULT_TIMEOUT

const std::chrono::seconds alexaClientSDK::mediaPlayer::android::test::WaitEvent::DEFAULT_TIMEOUT {10}
static

The default timeout for an expected event.


The documentation for this class 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