/* Terminate execution of a thread and remove it from ActiveThreads.  */
osStatus osThreadTerminate(osThreadId thread_id)
/* Terminate execution of a thread and remove it from ActiveThreads.  */
osStatus osThreadTerminate(osThreadId thread_id)
{
	rt_err_t result;
	result = rt_thread_delete(thread_id);
	if (result == RT_EOK)
		return osOK;
	else
		return osErrorOS;
}