From 3339ea1d0db839ffb1f2cbc382c8a265b2b4a59f Mon Sep 17 00:00:00 2001 From: Piotr Sarna Date: Thu, 7 Jan 2021 16:48:08 +0100 Subject: [PATCH] qos: add timeout to service level info Service level information now consists of the timeout config, which stores the timeout value for all operations. --- service/qos/qos_common.hh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/service/qos/qos_common.hh b/service/qos/qos_common.hh index cb9bceeac3..ed55f7f8ae 100644 --- a/service/qos/qos_common.hh +++ b/service/qos/qos_common.hh @@ -26,8 +26,8 @@ #include #include #include - - +#include +#include namespace qos { @@ -36,6 +36,17 @@ namespace qos { * a service level. */ struct service_level_options { + struct unset_marker { + bool operator==(const unset_marker&) const { return true; }; + bool operator!=(const unset_marker&) const { return false; }; + }; + struct delete_marker { + bool operator==(const delete_marker&) const { return true; }; + bool operator!=(const delete_marker&) const { return false; }; + }; + + std::variant timeout = unset_marker{}; + bool operator==(const service_level_options& other) const = default; bool operator!=(const service_level_options& other) const = default; };