* @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
| 1034 | * If the return value is any other values, it means this operation failed. |
| 1035 | */ |
| 1036 | rt_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 | } |
| 1040 | RTM_EXPORT(rt_thread_suspend_with_flag); |
| 1041 | |
| 1042 | /** |
no test coverage detected