git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8966 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2016-02-27 16:54:13 +00:00
parent ad24da6872
commit f7d87c07a3
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ osStatus osThreadTerminate(osThreadId thread_id) {
implemented using the registry.*/ implemented using the registry.*/
chThdExit(0); chThdExit(0);
} }
chEvtSignal((thread_t *)thread_id, CH_EVENT_TERMINATE); chThdTerminate(thread_id);
chThdWait((thread_t *)thread_id); chThdWait((thread_t *)thread_id);
return osOK; return osOK;