From a73d63e8d1c1c3d5b658d132026f9e056defad51 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Tue, 27 Jan 2026 22:18:43 +0100 Subject: [PATCH] Move timer to concurrent/ --- TactilityKernel/Include/tactility/{ => concurrent}/timer.h | 0 TactilityKernel/Source/{ => concurrent}/timer.c | 0 Tests/TactilityKernel/ThreadTest.cpp | 2 +- Tests/TactilityKernel/TimerTest.cpp | 5 +++-- 4 files changed, 4 insertions(+), 3 deletions(-) rename TactilityKernel/Include/tactility/{ => concurrent}/timer.h (100%) rename TactilityKernel/Source/{ => concurrent}/timer.c (100%) diff --git a/TactilityKernel/Include/tactility/timer.h b/TactilityKernel/Include/tactility/concurrent/timer.h similarity index 100% rename from TactilityKernel/Include/tactility/timer.h rename to TactilityKernel/Include/tactility/concurrent/timer.h diff --git a/TactilityKernel/Source/timer.c b/TactilityKernel/Source/concurrent/timer.c similarity index 100% rename from TactilityKernel/Source/timer.c rename to TactilityKernel/Source/concurrent/timer.c diff --git a/Tests/TactilityKernel/ThreadTest.cpp b/Tests/TactilityKernel/ThreadTest.cpp index a89b0c13..1bc4e9f0 100644 --- a/Tests/TactilityKernel/ThreadTest.cpp +++ b/Tests/TactilityKernel/ThreadTest.cpp @@ -1,6 +1,6 @@ #include "doctest.h" -#include "tactility/delay.h" +#include #include TEST_CASE("when a thread is started then its callback should be called") { diff --git a/Tests/TactilityKernel/TimerTest.cpp b/Tests/TactilityKernel/TimerTest.cpp index bb68b022..c2d4e8c9 100644 --- a/Tests/TactilityKernel/TimerTest.cpp +++ b/Tests/TactilityKernel/TimerTest.cpp @@ -1,9 +1,10 @@ #include "doctest.h" -#include "tactility/timer.h" -#include "tactility/delay.h" #include +#include +#include + TEST_CASE("timer_alloc and timer_free should handle allocation and deallocation") { auto callback = [](void* context) {}; struct Timer* timer = timer_alloc(TIMER_TYPE_ONCE, 10, callback, nullptr);