mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-26 06:43:58 +08:00
TC: more tolerate for tick in TC thread
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user