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

Function rt_thread_suspend

src/thread.c:1074–1077  ·  view source on GitHub ↗

* @brief This function will suspend the specified thread and change it to suspend state. * * @note This function can suspend both the current thread itself and other threads. * Please use this API with extreme caution when suspending other threads. * * When suspending the current thread: * rt_thread_suspend(rt_thread_self()); * This is generally

Source from the content-addressed store, hash-verified

1072 * If the return value is any other values, it means this operation failed.
1073 */
1074rt_err_t rt_thread_suspend(rt_thread_t thread)
1075{
1076 return rt_thread_suspend_with_flag(thread, RT_UNINTERRUPTIBLE);
1077}
1078RTM_EXPORT(rt_thread_suspend);
1079
1080/**

Callers 15

rt_audio_pipe_readFunction · 0.85
rt_audio_pipe_writeFunction · 0.85
rt_wm_que_incFunction · 0.85
_bus_out_entryFunction · 0.85
rt_vbus_postFunction · 0.85
rt_prio_queue_popFunction · 0.85
_dlmodule_exitFunction · 0.85
_pthread_cond_timedwaitFunction · 0.85
kthread_suspendFunction · 0.85
usbhost_pm_suspendFunction · 0.85
usbhost_pm_suspendFunction · 0.85
usbhost_pm_suspendFunction · 0.85

Calls 1