Fixed thread_delay test issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2371 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2012-10-25 08:54:26 +00:00
parent 61bec5b560
commit 2cdbbf8b05
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ static void thread_entry(void* parameter)
rt_tick_t tick;
rt_kprintf("thread inited ok\n");
tick = rt_tick_get();
rt_kprintf("thread delay 10 tick\n");
tick = rt_tick_get();
rt_thread_delay(10);
if (rt_tick_get() - tick > 10)
{
@ -20,8 +20,8 @@ static void thread_entry(void* parameter)
return;
}
tick = rt_tick_get();
rt_kprintf("thread delay 15 tick\n");
tick = rt_tick_get();
rt_thread_delay(15);
if (rt_tick_get() - tick > 15)
{