From 465a99f17f9e8f56813f225f09a6a1a498be9deb Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 18 Jan 2026 11:50:52 +0100 Subject: chore: kernel: codebase improvements. Signed-off-by: Amlal El Mahrouss --- src/kernel/KernelKit/ThreadLocalStorage.inl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kernel/KernelKit/ThreadLocalStorage.inl') diff --git a/src/kernel/KernelKit/ThreadLocalStorage.inl b/src/kernel/KernelKit/ThreadLocalStorage.inl index 30d81e8d..2da27ecd 100644 --- a/src/kernel/KernelKit/ThreadLocalStorage.inl +++ b/src/kernel/KernelKit/ThreadLocalStorage.inl @@ -5,11 +5,11 @@ //! @file ThreadLocalStorage.inl //! @brief Allocate resources from the process's heap storage. -#ifndef __KERNEL_KIT_USER_PROCESS_SCHEDULER_H__ +#ifndef KERNELKIT_USERPROCESSSCHEDULER_H #include #endif -template +template inline T* tls_new_ptr(void) { using namespace Kernel; @@ -24,7 +24,7 @@ inline T* tls_new_ptr(void) { //! @brief Delete process pointer. //! @param obj The pointer to delete. -template +template inline Kernel::Bool tls_delete_ptr(T* obj) { using namespace Kernel; @@ -39,14 +39,14 @@ inline Kernel::Bool tls_delete_ptr(T* obj) { //! @brief Delete process pointer. //! @param obj The pointer to delete. -template +template inline Kernel::Bool tls_delete_ptr(Kernel::ErrorOr obj) { return tls_delete_ptr(obj.Leak()); } //! @brief Delete process pointer. //! @param obj The pointer to delete. -template +template inline Kernel::Bool tls_delete_ptr(Kernel::ErrorOr obj) { return tls_delete_ptr(obj->Leak()); } @@ -56,7 +56,7 @@ inline Kernel::Bool tls_delete_ptr(Kernel::ErrorOr obj) { /// @tparam ...Args varg class type. /// @param args arguments list. /// @return Class instance. -template +template T* tls_new_class(Args&&... args) { using namespace Kernel; @@ -74,7 +74,7 @@ T* tls_new_class(Args&&... args) { /// @tparam T /// @param obj /// @return -template +template inline Kernel::Bool tls_delete_class(T* obj) { using namespace Kernel; -- cgit v1.2.3