diff options
| author | zms123456 <[email protected]> | 2024-04-28 15:19:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-28 15:19:50 +0800 |
| commit | fa1c473a964a7303e2f80e4fe126a4cadb09336b (patch) | |
| tree | 197e411619d4b4c8a924f39694c86fbe8d071495 | |
| parent | 52ebdf6bdba944b91bc7ab35884f4732fe3f6939 (diff) | |
[src][thread]bind cpu fixup (#8872)
bind cpu fixup
| -rw-r--r-- | src/scheduler_mp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scheduler_mp.c b/src/scheduler_mp.c index ef5a3ee935..ee32d9bc60 100644 --- a/src/scheduler_mp.c +++ b/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 */ |
