AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::ConditionVariable Class Reference

A ConditionVariable type with the minimum functionality required by SDS. More...

Inheritance diagram for alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::ConditionVariable:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::ConditionVariable:
Collaboration graph
[legend]

Public Member Functions

void notify_all ()
 Notify all waiters. More...
 
void wait (std::unique_lock< Mutex > &lock)
 Wait forever. More...
 
template<class Predicate >
void wait (std::unique_lock< Mutex > &lock, Predicate pred)
 Wait forever for pred to be true. More...
 
template<class Rep , class Period , class Predicate >
bool wait_for (std::unique_lock< Mutex > &lock, const std::chrono::duration< Rep, Period > &rel_time, Predicate pred)
 Wait until timeout for pred to be true. More...
 

Detailed Description

A ConditionVariable type with the minimum functionality required by SDS.

Member Function Documentation

◆ notify_all()

void alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::ConditionVariable::notify_all ( )
inline

Notify all waiters.

◆ wait() [1/2]

void alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::ConditionVariable::wait ( std::unique_lock< Mutex > &  lock)
inline

Wait forever.

◆ wait() [2/2]

template<class Predicate >
void alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::ConditionVariable::wait ( std::unique_lock< Mutex > &  lock,
Predicate  pred 
)
inline

Wait forever for pred to be true.

◆ wait_for()

template<class Rep , class Period , class Predicate >
bool alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::ConditionVariable::wait_for ( std::unique_lock< Mutex > &  lock,
const std::chrono::duration< Rep, Period > &  rel_time,
Predicate  pred 
)
inline

Wait until timeout for pred to be true.


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