Public Member Functions | Private Member Functions | Private Attributes | List of all members
Aws::DataFlow::ThreadMonitor Class Referenceabstract

#include <status_monitor.h>

Inheritance diagram for Aws::DataFlow::ThreadMonitor:
Inheritance graph
[legend]

Public Member Functions

void notify ()
 
void waitForWork ()
 
std::cv_status waitForWork (const std::chrono::microseconds &duration)
 
virtual ~ThreadMonitor ()=default
 

Private Member Functions

virtual bool hasWork ()=0
 

Private Attributes

std::mutex idle_mutex_
 
std::condition_variable work_condition_
 

Detailed Description

Definition at line 100 of file status_monitor.h.

Constructor & Destructor Documentation

virtual Aws::DataFlow::ThreadMonitor::~ThreadMonitor ( )
virtualdefault

Member Function Documentation

virtual bool Aws::DataFlow::ThreadMonitor::hasWork ( )
privatepure virtual
void Aws::DataFlow::ThreadMonitor::notify ( )

Definition at line 30 of file status_monitor.cpp.

void Aws::DataFlow::ThreadMonitor::waitForWork ( )

Definition at line 37 of file status_monitor.cpp.

std::cv_status Aws::DataFlow::ThreadMonitor::waitForWork ( const std::chrono::microseconds &  duration)

Definition at line 44 of file status_monitor.cpp.

Member Data Documentation

std::mutex Aws::DataFlow::ThreadMonitor::idle_mutex_
private

Definition at line 108 of file status_monitor.h.

std::condition_variable Aws::DataFlow::ThreadMonitor::work_condition_
private

Definition at line 109 of file status_monitor.h.


The documentation for this class was generated from the following files:


dataflow_lite
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:22