From aa0d3695e137c83f0622c926256951948844f947 Mon Sep 17 00:00:00 2001 From: "nongli1031@gmail.com" Date: Tue, 30 Oct 2012 00:55:48 +0000 Subject: [PATCH] add rt_sem_treytalk() git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2380 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- examples/kernel/tc_comm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/kernel/tc_comm.c b/examples/kernel/tc_comm.c index de9bb3ce31..008be9b746 100644 --- a/examples/kernel/tc_comm.c +++ b/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