回复:Re: [lwip-users] where can i fi nd out the function for time check
From:
沈伟锋
Subject:
回复:Re: [lwip-users] where can i fi nd out the function for time check
Date:
Fri, 30 Mar 2007 15:41:57 +0800 (CST)
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); . .
-- Cheers,
Tai-hwa Liang
Tai-hwa Liang thanks ! Did you mean that ,lwip doesn't define time_check_function() for time check . But we can edit sys_mbox_fetch() to our Own_Time_Check_Function(),for time check and call timeout handle .