ros2_control - jazzy
Loading...
Searching...
No Matches
realtime_tools::AsyncSchedulingPolicy Class Reference

Enum class to define the scheduling policy for the async worker thread. SYNCHRONIZED: The async worker thread will be synchronized with the main thread, as the main thread will be triggering the async callback method. DETACHED: The async worker thread will be detached from the main thread and will have its own execution cycle. SELF_PACED: The async worker thread will be scheduled by the hardware, by blocking at start of read() until a UDP packet arrives. Then the control cycle is started. UNKNOWN: The scheduling policy is unknown. More...

#include <async_function_handler.hpp>

Public Types

enum  Value : int8_t { UNKNOWN = -1 , SYNCHRONIZED , DETACHED , SELF_PACED }

Public Member Functions

constexpr AsyncSchedulingPolicy (Value value)
 AsyncSchedulingPolicy (const std::string &data_type)
 operator Value () const
 operator bool () const =delete
constexpr bool operator== (AsyncSchedulingPolicy other) const
constexpr bool operator!= (AsyncSchedulingPolicy other) const
constexpr bool operator== (Value other) const
constexpr bool operator!= (Value other) const
std::string to_string () const
AsyncSchedulingPolicy from_string (const std::string &data_type)

Detailed Description

Enum class to define the scheduling policy for the async worker thread. SYNCHRONIZED: The async worker thread will be synchronized with the main thread, as the main thread will be triggering the async callback method. DETACHED: The async worker thread will be detached from the main thread and will have its own execution cycle. SELF_PACED: The async worker thread will be scheduled by the hardware, by blocking at start of read() until a UDP packet arrives. Then the control cycle is started. UNKNOWN: The scheduling policy is unknown.

Member Enumeration Documentation

◆ Value

Enumerator
SYNCHRONIZED 

Unknown scheduling policy.

DETACHED 

Synchronized scheduling policy.

SELF_PACED 

Detached scheduling policy.


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