Skip to content
Snippets Groups Projects
Commit 645e8bb1 authored by Federico's avatar Federico
Browse files

Fix use of getCurrentThread in IRQ context

parent 9aab33c2
Branches
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ bool IRQwakeThreads(long long currentTime)
if(currentTime<(*it)->wakeupTime) break;
//Wake both threads doing absoluteSleep() and timedWait()
(*it)->thread->flags.IRQclearSleepAndWait();
if(const_cast<Thread*>(runningThread)->getPriority()<(*it)->thread->getPriority())
if(const_cast<Thread*>(runningThread)->IRQgetPriority()<(*it)->thread->IRQgetPriority())
result=true;
it=sleepingList.erase(it);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment