Просмотр исходного кода

Added warning note to 'osThreadTerminate'

bruneu01 9 лет назад
Родитель
Сommit
c00e8acb9e

+ 1 - 0
CMSIS/DoxyGen/RTOS/src/cmsis_os.txt

@@ -2278,6 +2278,7 @@ Remove the thread function from the active thread list. If the thread is current
  - \em osErrorISR: \ref osThreadTerminate cannot be called from interrupt service routines.
 
 \note Cannot be called from \ref CMSIS_RTOS_ISR_Calls "Interrupt Service Routines".
+\note Avoid calling the function with a \em thread_id that does not exist or has been terminated already.
 
 <b>Code Example</b>
 \code{.c}

+ 1 - 0
CMSIS/DoxyGen/RTOS2/src/cmsis_os2_Thread.txt

@@ -532,6 +532,7 @@ Possible \ref osStatus_t return values:
     - \em osErrorISR: the function \b osThreadTerminate cannot be called from interrupt service routines.
 
 \note This function \b cannot be called from \ref CMSIS_RTOS_ISR_Calls "Interrupt Service Routines".
+\note Avoid calling the function with a \em thread_id that does not exist or has been terminated already.
 
 <b>Code Example</b>
 \code