summaryrefslogtreecommitdiff
path: root/examples/kernel/thread_priority.c
diff options
context:
space:
mode:
authordzzxzz <[email protected]>2011-09-26 02:50:43 +0000
committerdzzxzz <[email protected]>2011-09-26 02:50:43 +0000
commit9bb329daee2f842a724d3cdede9413a839e5069c (patch)
treeb99b0af5cb1b5fa0b3ce26d9837636bef12aeece /examples/kernel/thread_priority.c
parentb886a19bf95701b73f0e191b190d28795c5a8cfc (diff)
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
Diffstat (limited to 'examples/kernel/thread_priority.c')
-rw-r--r--examples/kernel/thread_priority.c1
1 files changed, 1 insertions, 0 deletions
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