libdisplaydevice latest
C++ library to modify display devices.
display_device::SchedulerOptions Struct Reference

Scheduler options to be used when scheduling executor function. More...

#include <src/common/include/display_device/retry_scheduler.h>

Public Types

enum class  Execution { Immediate , ImmediateWithSleep , ScheduledOnly }
 Defines the executor's execution logic when it is scheduled. More...
 

Public Attributes

Execution m_execution {Execution::Immediate}
 Executor's execution logic.
 
std::vector< std::chrono::milliseconds > m_sleep_durations
 Specifies for long the scheduled thread sleeps before invoking executor. Last duration is reused indefinitely.
 

Detailed Description

Scheduler options to be used when scheduling executor function.

Member Enumeration Documentation

◆ Execution

Defines the executor's execution logic when it is scheduled.

Enumerator
Immediate 

Executor is executed in the calling thread immediately and scheduled afterward.

ImmediateWithSleep 

The first sleep duration is TAKEN from m_sleep_durations and the calling thread is put to sleep. Once awoken, follows by same logic as Immediate.

ScheduledOnly 

Executor is executed in the thread only.


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