[−][src]Function cmsis_rtos2::cmsis_os2::osThreadNew
pub unsafe extern "C" fn osThreadNew(
func: osThreadFunc_t,
argument: *mut c_void,
attr: *const osThreadAttr_t
) -> osThreadId_t
Create a thread and add it to Active Threads. \param[in] func thread function. \param[in] argument pointer that is passed to the thread function as start argument. \param[in] attr thread attributes; NULL: default values. \return thread ID for reference by other functions or NULL in case of error.