Browse Source

Fix misoperation on task system

pull/3/head
yudongdong 1 year ago
parent
commit
4caf2266b8
  1. 7
      kernel/thread/ktask.c

7
kernel/thread/ktask.c

@ -269,12 +269,13 @@ x_err_t _KTaskPrioSet(KTaskDescriptorType task, uint8 prio)
case KTASK_INIT:
case KTASK_SUSPEND:
case KTASK_RUNNING:
task->task_dync_sched_member.cur_prio = prio; KTaskDescriptorType tid;
task->task_dync_sched_member.cur_prio = prio;
__BitmapSiteMask(task);
break;
case KTASK_CLOSE:
ShowTask();
KPrintf("the close stat task is forbidden to change priority.\n");
ret = -ERROR;
ret = EOK;
break;
default:
KPrintf("invalid stat task is forbidden to change priority.\n");

Loading…
Cancel
Save