From 9bb329daee2f842a724d3cdede9413a839e5069c Mon Sep 17 00:00:00 2001 From: dzzxzz Date: Mon, 26 Sep 2011 02:50:43 +0000 Subject: update kernel examples fixed an error in timer_control.c git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1730 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- examples/kernel/thread_priority.c | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/kernel/thread_priority.c') diff --git a/examples/kernel/thread_priority.c b/examples/kernel/thread_priority.c index 4699913369..c64e329a6f 100644 --- a/examples/kernel/thread_priority.c +++ b/examples/kernel/thread_priority.c @@ -49,6 +49,7 @@ int thread_priority_init() thread1_entry, RT_NULL, &thread1_stack[0], sizeof(thread1_stack), THREAD_PRIORITY - 1, THREAD_TIMESLICE); + if (result == RT_EOK) rt_thread_startup(&thread1); else -- cgit v1.3.1