Преглед изворни кода

add tc_done()

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2381 bbd45198-f89e-11dd-88c7-29a3b14d5316
nongli1031@gmail.com пре 12 година
родитељ
комит
6773015c4a
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      examples/kernel/semaphore_priority.c

+ 2 - 2
examples/kernel/semaphore_priority.c

@@ -101,9 +101,9 @@ static void _tc_cleanup()
 	rt_thread_delete(worker);
 
 	if (t1_count > t2_count)
-		tc_stat(TC_STAT_FAILED);
+		tc_done(TC_STAT_FAILED);
 	else
-		tc_stat(TC_STAT_PASSED);
+		tc_done(TC_STAT_PASSED);
 
 	/* unlock scheduler */
 	rt_exit_critical();