lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] question about timer handler


From: stephen
Subject: Re: [lwip-users] question about timer handler
Date: Mon, 15 Mar 2004 12:15:17 +0800

Maybe you can read Mr. Taylor's explanation.
http://mail.gnu.org/archive/html/lwip-users/2004-01/msg00050.html
 
----- Original Message -----
Sent: Saturday, March 13, 2004 9:26 AM
Subject: [lwip-users] question about timer handler


I have a question regarding the sys_timeout and its handler function. I understand that sys_timeout() function puts the handler function onto a timeout list, and supposedly when the time runs out, the handler function will be kicked up. However, how does lwip administrate the time, i.e., how does it decrement the time on the timeout list on a timely fashion and who kicks up the handler function? Are both of the two mechanisms already handled by lwip (which I haven't seen so far) or the porting need to handle both of them? In my porting effort, I actually used a system based timer thread in one of the thread running at the background (luckily the system is multithread enabled), and all it does is every so often it wakes up and decrement certain amount of the time value on all the entries on timeoutlist of each thread of  the thread list, and kicks up the handler function when the timeout value decrement to zero or below.

Your answer and comment is highly appreciated.

Shawn


_______________________________________________
lwip-users mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]