Move timer to concurrent/

This commit is contained in:
Ken Van Hoeylandt 2026-01-27 22:18:43 +01:00
parent d03d519066
commit a73d63e8d1
4 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#include "doctest.h"
#include "tactility/delay.h"
#include <tactility/delay.h>
#include <tactility/concurrent/thread.h>
TEST_CASE("when a thread is started then its callback should be called") {

View File

@ -1,9 +1,10 @@
#include "doctest.h"
#include "tactility/timer.h"
#include "tactility/delay.h"
#include <atomic>
#include <tactility/concurrent/timer.h>
#include <tactility/delay.h>
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);