lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #48568] timeouts does not support late firing properly


From: Sylvain Rochet
Subject: [lwip-devel] [bug #48568] timeouts does not support late firing properly
Date: Wed, 27 Jul 2016 19:20:30 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #3, bug #48568 (project lwip):

Absolute timers are great, and faster, because the comparison is obviously the
most simple comparison that could be made, well, at least, on 32-bit targets
(are there still users of lwIP on 8-bit platforms ?, that doesn't sound like a
good design choice nowadays ;-), I'm pretty none of us tried that for a long
time).

But, there is always a but, it means we need a new u32_t field in the timeout
struct to store the target time, so we can keep the timeout period, we need
that in order to be able to restart all timers on wakeup event for devices
that sleep, this is what the timeouts_last_time is currently used to. With
delta-diff timers we only need one variable, with absolute timers, we need one
"timeouts_last_time"-equivalent per timer.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?48568>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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