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

bind cpu fixup
This commit is contained in:
zms123456 2024-04-28 15:19:50 +08:00 committed by GitHub
parent 52ebdf6bdb
commit fa1c473a96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

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