diff options
| author | Grissiom <[email protected]> | 2013-12-21 13:18:09 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-12-21 13:18:46 +0800 |
| commit | f6bf69f233688952391da88bff961ad267de381c (patch) | |
| tree | a29e0d6c4e6fd9fba302a8eeffd49a0cb56980a2 /examples/kernel/thread_priority.c | |
| parent | f7b14218800ad7ed6c47c67d4d043a3340d63116 (diff) | |
TC: more tolerate for tick in TC thread
Diffstat (limited to 'examples/kernel/thread_priority.c')
| -rw-r--r-- | examples/kernel/thread_priority.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/kernel/thread_priority.c b/examples/kernel/thread_priority.c index 81a9bc0382..0045b0e578 100644 --- a/examples/kernel/thread_priority.c +++ b/examples/kernel/thread_priority.c @@ -45,21 +45,21 @@ int thread_priority_init() rt_err_t result; result = rt_thread_init(&thread1, - "t1", - thread1_entry, RT_NULL, - &thread1_stack[0], sizeof(thread1_stack), - THREAD_PRIORITY - 1, THREAD_TIMESLICE); - + "t1", + thread1_entry, RT_NULL, + &thread1_stack[0], sizeof(thread1_stack), + THREAD_PRIORITY - 1, THREAD_TIMESLICE); + if (result == RT_EOK) rt_thread_startup(&thread1); else tc_stat(TC_STAT_FAILED); rt_thread_init(&thread2, - "t2", - thread2_entry, RT_NULL, - &thread2_stack[0], sizeof(thread2_stack), - THREAD_PRIORITY + 1, THREAD_TIMESLICE); + "t2", + thread2_entry, RT_NULL, + &thread2_stack[0], sizeof(thread2_stack), + THREAD_PRIORITY + 1, THREAD_TIMESLICE); if (result == RT_EOK) rt_thread_startup(&thread2); |
