* @brief This function will insert a thread to the system ready queue. The state of * thread will be set as READY and the thread will be removed from suspend queue. * * @param thread The thread to be inserted. * * @note Please do not invoke this function in user application. * Caller must hold the scheduler lock * * @note This function has both MP version and UP version. */
| 1097 | * @note This function has both MP version and UP version. |
| 1098 | */ |
| 1099 | void rt_sched_insert_thread(struct rt_thread *thread) |
| 1100 | { |
| 1101 | RT_ASSERT(thread != RT_NULL); |
| 1102 | RT_SCHED_DEBUG_IS_LOCKED; |
| 1103 | |
| 1104 | /* set READY and insert thread to ready queue */ |
| 1105 | _sched_insert_thread_locked(thread); |
| 1106 | } |
| 1107 | |
| 1108 | /** |
| 1109 | * @brief This function will remove a thread from system ready queue. |
no test coverage detected