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