* @brief This function will find the specified thread. * * @note Please don't invoke this function in interrupt status. * * @param name is the name of thread finding. * * @return If the return value is a rt_thread structure pointer, the function is successfully executed. * If the return value is RT_NULL, it means this operation failed. */
| 1184 | * If the return value is RT_NULL, it means this operation failed. |
| 1185 | */ |
| 1186 | rt_thread_t rt_thread_find(char *name) |
| 1187 | { |
| 1188 | return (rt_thread_t)rt_object_find(name, RT_Object_Class_Thread); |
| 1189 | } |
| 1190 | |
| 1191 | RTM_EXPORT(rt_thread_find); |
| 1192 |