* @brief This function will remove a thread from system ready queue. * * @param thread The thread to be removed. * * @note Please do not invoke this function in user application. * * @note This function has both MP version and UP version. */
| 1115 | * @note This function has both MP version and UP version. |
| 1116 | */ |
| 1117 | void rt_sched_remove_thread(struct rt_thread *thread) |
| 1118 | { |
| 1119 | RT_ASSERT(thread != RT_NULL); |
| 1120 | RT_SCHED_DEBUG_IS_LOCKED; |
| 1121 | |
| 1122 | /* remove thread from scheduler ready list */ |
| 1123 | _sched_remove_thread_locked(thread); |
| 1124 | |
| 1125 | RT_SCHED_CTX(thread).stat = RT_THREAD_SUSPEND_UNINTERRUPTIBLE; |
| 1126 | } |
| 1127 | |
| 1128 | /** |
| 1129 | * @brief Initialize thread's scheduling private data |
no test coverage detected