|
From: | Tai-hwa Liang |
Subject: | Re: 回复:Re: [lwip-users] where can i fi nd out the function for time check |
Date: | Fri, 30 Mar 2007 16:10:36 +0800 (CST) |
On Fri, 30 Mar 2007, 朻帡瑟 wrote:
On Fri, 30 Mar 2007, 朻帡瑟 wrote:void sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg) register a handle for timeout . but where can find the function, we call it for timeout check and call the timeout handle registered by sys_timeout().See src/core/sys.c, inside sys_mbox_fetch() and sys_sem_wait(): . . h(arg); . . Did you mean that ,lwip doesn't define time_check_function() for time check .
If I understand the code correctly, the time_check_function() you referred is embeded in sys_mbox_fetch()/sys_sem_wait().
But we can edit sys_mbox_fetch() to our Own_Time_Check_Function(),for time check and call timeout handle .
That's what sys_timeout() for: user application arms a timeout handler and the lwIP calls back. -- Cheers, Tai-hwa Liang
[Prev in Thread] | Current Thread | [Next in Thread] |