diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-13 09:24:03 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-09-13 09:24:03 +0200 |
| commit | bde476f31eb133df3355c2ad8abce5acda105165 (patch) | |
| tree | ae50162b2d4b63f2e3d6246a08a7d4b27bfaed06 /dev/ZKA/NewKit | |
| parent | 700cfd8d6363cfbb1a949e9d09e83f81c9c90452 (diff) | |
META: Daily bump.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/ZKA/NewKit')
| -rw-r--r-- | dev/ZKA/NewKit/Defines.hxx | 12 |
1 files changed, 8 insertions, 4 deletions
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<Args&&>(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 <typename T, typename Y> Y As(T type) noexcept { - if (type.IsCastable()) + if (type.IsSerializable()) { return reinterpret_cast<Char*>(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; |
