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

Function rt_sched_remove_thread

src/scheduler_mp.c:1117–1126  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1115 * @note This function has both MP version and UP version.
1116 */
1117void 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

Callers 1

rt_sched_thread_bind_cpuFunction · 0.70

Calls 1

Tested by

no test coverage detected