Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kThread_SetName ( kThread  thread,
const kChar name 
)

Sets the name of the thread.

Unique names should be assigned to threads in order to aid debugging. Note that some operating systems restrict name lengths to only a few characters (e.g., Linux: 16); in this case, the given name may be truncated when the start is started.

This method can only be called before the thread has been started.

Parameters
threadThread object.
nameThread name.
Returns
Operation status.