From 869945117413aede29ddf95dbd84b860302ef6ff Mon Sep 17 00:00:00 2001 From: KrecikOnDexin Date: Mon, 30 Dec 2024 13:50:50 +0100 Subject: [PATCH] up --- src/scheduler.h | 8 +++----- src/tasks.h | 4 +--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/scheduler.h b/src/scheduler.h index 8677e5b5d8..dd4151bd19 100644 --- a/src/scheduler.h +++ b/src/scheduler.h @@ -7,11 +7,11 @@ #include "tasks.h" #include "thread_holder_base.h" -static constexpr int32_t SCHEDULER_MINTICKS = 50; +#include -class SchedulerTask; +static constexpr int32_t SCHEDULER_MINTICKS = 50; -using SchedulerTask_ptr = std::unique_ptr; +using SchedulerTask_ptr = std::unique_ptr; class SchedulerTask : public Task { @@ -26,8 +26,6 @@ class SchedulerTask : public Task private: uint32_t eventId = 0; uint32_t delay = 0; - - friend SchedulerTask_ptr createSchedulerTask(uint32_t delay, TaskFunc&& f); }; SchedulerTask_ptr createSchedulerTask(uint32_t delay, TaskFunc&& f); diff --git a/src/tasks.h b/src/tasks.h index 04625c3904..f0f1c0ac58 100644 --- a/src/tasks.h +++ b/src/tasks.h @@ -10,9 +10,7 @@ using TaskFunc = std::function; const int DISPATCHER_TASK_EXPIRATION = 2000; const auto SYSTEM_TIME_ZERO = std::chrono::system_clock::time_point(std::chrono::milliseconds(0)); -class Task; - -using Task_ptr = std::unique_ptr; +using Task_ptr = std::unique_ptr; class Task {