Function osThreadSetPriority

Source
pub unsafe extern "C" fn osThreadSetPriority(
    thread_id: osThreadId_t,
    priority: osPriority_t,
) -> osStatus_t
Expand description

Change priority of a thread. \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. \param[in] priority new priority value for the thread function. \return status code that indicates the execution status of the function.