From bde476f31eb133df3355c2ad8abce5acda105165 Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 13 Sep 2024 09:24:03 +0200 Subject: META: Daily bump. Signed-off-by: Amlal --- dev/ZKA/NewKit/Defines.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'dev/ZKA/NewKit') diff --git a/dev/ZKA/NewKit/Defines.hxx b/dev/ZKA/NewKit/Defines.hxx index 395b14a5..b77e94f3 100644 --- a/dev/ZKA/NewKit/Defines.hxx +++ b/dev/ZKA/NewKit/Defines.hxx @@ -103,13 +103,13 @@ namespace Kernel return static_cast(arg); } - /// @brief Coder/Decoder class, used as a proxy to convert T to Char* + /// @brief Encoding interface, used as a proxy to convert T to Char* /// Used to cast A to B or B to A. - class IEncoderObject final + class IEncoderObject { public: explicit IEncoderObject() = default; - ~IEncoderObject() = default; + virtual ~IEncoderObject() = default; IEncoderObject& operator=(const IEncoderObject&) = default; IEncoderObject(const IEncoderObject&) = default; @@ -133,7 +133,7 @@ namespace Kernel template Y As(T type) noexcept { - if (type.IsCastable()) + if (type.IsSerializable()) { return reinterpret_cast(type); } @@ -142,6 +142,7 @@ namespace Kernel } }; + /// \brief Scheduler interface, represents a scheduler object. class ISchedulerObject { public: @@ -151,16 +152,19 @@ namespace Kernel ISchedulerObject& operator=(const ISchedulerObject&) = default; ISchedulerObject(const ISchedulerObject&) = default; + /// @brief Is this object only accepting user tasks? virtual const Bool IsUser() { return false; } + /// @brief Is this object only accepting kernel tasks? virtual const Bool IsKernel() { return false; } + /// @brief Is this object offloading to another CPU? virtual const Bool HasMP() { return false; -- cgit v1.2.3