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

Function rt_thread_get_name

src/thread.c:1205–1208  ·  view source on GitHub ↗

* @brief This function will return the name of the specified thread * * @note Please don't invoke this function in interrupt status * * @param thread the thread to retrieve thread name * @param name buffer to store the thread name string * @param name_size maximum size of the buffer to store the thread name * * @return If the return value is RT_EOK, the function is successfully

Source from the content-addressed store, hash-verified

1203 * If the return value is -RT_EINVAL, it means this operation failed
1204 */
1205rt_err_t rt_thread_get_name(rt_thread_t thread, char *name, rt_uint8_t name_size)
1206{
1207 return (thread == RT_NULL) ? -RT_EINVAL : rt_object_get_name(&thread->parent, name, name_size);
1208}
1209RTM_EXPORT(rt_thread_get_name);
1210
1211/** @} group_thread_management */

Callers 1

_mutex_take_safeFunction · 0.85

Calls 1

rt_object_get_nameFunction · 0.85

Tested by

no test coverage detected