ros2_control - rolling
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
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. UNKNOWN: The scheduling policy is unknown. More...

#include <async_function_handler.hpp>

Public Types

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

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. UNKNOWN: The scheduling policy is unknown.

Member Enumeration Documentation

◆ Value

Enumerator
SYNCHRONIZED 

Unknown scheduling policy.

DETACHED 

Synchronized scheduling policy.


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