mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Add touch input support, add fast scrolling support for coverflow display mode, fix use after free bug in banner list mode
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
#include "common.h"
|
||||
#include "Task.h"
|
||||
|
||||
void TaskBase::Execute()
|
||||
void TaskBase::RequestCancel()
|
||||
{
|
||||
u32 irqs = rtos_disableIrqs();
|
||||
_cancelRequested = true;
|
||||
if (_state == TaskState::NotStarted)
|
||||
{
|
||||
_state = TaskState::Canceled;
|
||||
rtos_wakeupQueue(&_threadQueue);
|
||||
}
|
||||
rtos_restoreIrqs(irqs);
|
||||
}
|
||||
|
||||
void TaskBase::Execute(u32 irqs)
|
||||
{
|
||||
if (_state == TaskState::NotStarted)
|
||||
{
|
||||
_state = TaskState::Running;
|
||||
@@ -12,7 +23,9 @@ void TaskBase::Execute()
|
||||
SetFinalState(finalState);
|
||||
}
|
||||
else
|
||||
{
|
||||
rtos_restoreIrqs(irqs);
|
||||
}
|
||||
}
|
||||
|
||||
void TaskBase::SetFinalState(TaskState finalState)
|
||||
|
||||
Reference in New Issue
Block a user