Maybe you can read Mr. Taylor's
explanation.
----- 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
|