diff options
Diffstat (limited to 'examples/kernel/thread_priority.c')
| -rw-r--r-- | examples/kernel/thread_priority.c | 1 |
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
|
