From 076c8378e96a9fac9864c9d02bb63fa7dd423e4a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 10 Dec 2025 22:38:24 +0100 Subject: chore: using more header guards than pragma once. Signed-off-by: Amlal El Mahrouss --- src/kernel/KernelKit/Timer.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/kernel/KernelKit/Timer.h') diff --git a/src/kernel/KernelKit/Timer.h b/src/kernel/KernelKit/Timer.h index 605cd0fa..97bc5891 100644 --- a/src/kernel/KernelKit/Timer.h +++ b/src/kernel/KernelKit/Timer.h @@ -4,31 +4,32 @@ ======================================== */ -#pragma once +#ifndef __KERNEL_KIT_TIMER_H__ +#define __KERNEL_KIT_TIMER_H__ #include #include namespace Kernel { class SoftwareTimer; -class TimerInterface; +class ITimer; inline constexpr Int16 kTimeUnit = 1000; -class TimerInterface { +class ITimer { public: /// @brief Default constructor - explicit TimerInterface() = default; - virtual ~TimerInterface() = default; + explicit ITimer() = default; + virtual ~ITimer() = default; public: - NE_COPY_DEFAULT(TimerInterface) + NE_COPY_DEFAULT(ITimer) public: virtual BOOL Wait(); }; -class SoftwareTimer final : public TimerInterface { +class SoftwareTimer final : public ITimer { public: explicit SoftwareTimer(Int64 seconds); ~SoftwareTimer() override; @@ -44,7 +45,7 @@ class SoftwareTimer final : public TimerInterface { Int64 fWaitFor{0}; }; -class HardwareTimer final : public TimerInterface { +class HardwareTimer final : public ITimer { public: explicit HardwareTimer(UInt64 seconds); ~HardwareTimer() override; @@ -73,3 +74,5 @@ inline UInt64 rtl_milliseconds(UInt64 time) { return time; } } // namespace Kernel + +#endif // !__KERNEL_KIT_TIMER_H__ \ No newline at end of file -- cgit v1.2.3