瀏覽代碼

[src][thread]bind cpu fixup (#8872)

bind cpu fixup
zms123456 1 年之前
父節點
當前提交
fa1c473a96
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/scheduler_mp.c

+ 2 - 0
src/scheduler_mp.c

@@ -985,6 +985,8 @@ void rt_sched_remove_thread(struct rt_thread *thread)
 
     /* remove thread from scheduler ready list  */
     _sched_remove_thread_locked(thread);
+
+    RT_SCHED_CTX(thread).stat = RT_THREAD_SUSPEND_UNINTERRUPTIBLE;
 }
 
 /* thread status initialization and setting up on startup */