MCPcopy Index your code
hub / github.com/RT-Thread/rt-thread / rt_thread_suspend_with_flag

Function rt_thread_suspend_with_flag

src/thread.c:1036–1039  ·  view source on GitHub ↗

* @brief This function will suspend the specified thread and change it to suspend state. * * @note This function ONLY can suspend current thread itself. * rt_thread_suspend(rt_thread_self()); * * Do not use the rt_thread_suspend to suspend other threads. You have no way of knowing what code a * thread is executing when you suspend it. If you suspend a thre

Source from the content-addressed store, hash-verified

1034 * If the return value is any other values, it means this operation failed.
1035 */
1036rt_err_t rt_thread_suspend_with_flag(rt_thread_t thread, int suspend_flag)
1037{
1038 return rt_thread_suspend_to_list(thread, RT_NULL, 0, suspend_flag);
1039}
1040RTM_EXPORT(rt_thread_suspend_with_flag);
1041
1042/**

Callers 15

_wait_for_eventFunction · 0.85
_stop_thread_lockedFunction · 0.85
lwp_tid_putFunction · 0.85
_waitq_inqueueFunction · 0.85
rt_completion_wait_flagsFunction · 0.85
_rt_wqueue_waitFunction · 0.85
_comp_susp_threadFunction · 0.85
epoll_wait_timeoutFunction · 0.85
timerfd_readFunction · 0.85
poll_wait_timeoutFunction · 0.85
rt_signal_waitFunction · 0.85

Calls 1

Tested by

no test coverage detected