浏览代码

add rt_sem_treytalk()

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2380 bbd45198-f89e-11dd-88c7-29a3b14d5316
nongli1031@gmail.com 12 年之前
父节点
当前提交
aa0d3695e1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/kernel/tc_comm.c

+ 2 - 0
examples/kernel/tc_comm.c

@@ -49,6 +49,8 @@ void tc_thread_entry(void* parameter)
 						_tc_cleanup = RT_NULL;
 					}
 
+					rt_sem_trytake(&_tc_sem);/* by nl1031 */
+
 					if (_tc_stat & TC_STAT_FAILED)
 						rt_kprintf("TestCase[%s] failed\n", _tc_current);
 					else