MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_sched_insert_thread

Function rt_sched_insert_thread

src/scheduler_mp.c:1099–1106  ·  view source on GitHub ↗

* @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. */

Source from the content-addressed store, hash-verified

1097 * @note This function has both MP version and UP version.
1098 */
1099void 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.

Callers 1

rt_sched_thread_bind_cpuFunction · 0.70

Calls 1

Tested by

no test coverage detected