Remove thread sleepTick/waitingNs

This commit is contained in:
wheremyfoodat
2024-01-27 15:38:27 +02:00
parent 99a1a0133d
commit 491b415759
4 changed files with 37 additions and 58 deletions

View File

@@ -126,9 +126,7 @@ void Kernel::waitSynchronization1() {
auto& t = threads[currentThreadIndex];
t.waitList.resize(1);
t.status = ThreadStatus::WaitSync1;
t.sleepTick = cpu.getTicks();
t.wakeupTick = getWakeupTick(ns);
t.waitingNanoseconds = ns;
t.waitList[0] = handle;
// Add the current thread to the object's wait list
@@ -221,8 +219,6 @@ void Kernel::waitSynchronizationN() {
t.waitList.resize(handleCount);
t.status = ThreadStatus::WaitSyncAny;
t.outPointer = outPointer;
t.waitingNanoseconds = ns;
t.sleepTick = cpu.getTicks();
t.wakeupTick = getWakeupTick(ns);
for (s32 i = 0; i < handleCount; i++) {