瀏覽代碼

Added warning note to 'osThreadTerminate'

bruneu01 9 年之前
父節點
當前提交
c00e8acb9e
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      CMSIS/DoxyGen/RTOS/src/cmsis_os.txt
  2. 1 0
      CMSIS/DoxyGen/RTOS2/src/cmsis_os2_Thread.txt

+ 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