Update timing implementation

This commit is contained in:
Alex
2023-04-23 05:30:58 +03:00
parent 7e201e0958
commit 89d747e52c
10 changed files with 308 additions and 117 deletions

View File

@ -288,7 +288,7 @@ namespace Tasking
thread->Status = TaskStatus::Sleeping;
if (thread->Parent->Threads.size() == 1)
thread->Parent->Status = TaskStatus::Sleeping;
thread->Info.SleepUntil = TimeManager->CalculateTarget(Milliseconds);
thread->Info.SleepUntil = TimeManager->CalculateTarget(Milliseconds, Time::Units::Milliseconds);
tskdbg("Thread \"%s\"(%d) is going to sleep until %llu", thread->Name, thread->ID, thread->Info.SleepUntil);
// TaskingScheduler_OneShot(1);
// IRQ16