[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #52748] the bug in timeouts.c
From: |
Douglas |
Subject: |
[lwip-devel] [bug #52748] the bug in timeouts.c |
Date: |
Sat, 6 Jan 2018 02:21:55 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
Follow-up Comment #9, bug #52748 (project lwip):
> I don't know if calling sys_now() in every loop is a good thing to do ...
Looking at it again it does seem appropriate to sample sys_now() only at the
start of the loop. So on each call it processes all timeouts that had expired
at the start of the call. This gives some priority to processing mbox messages
which seems appropriate.
The caller, sys_timeouts_mbox_fetch, calls sys_timeouts_sleeptime() and only
waits that long so will loop around again quickly if there are now more
expired timeouts, but will have processed a mbox message first.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?52748>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #52748] the bug in timeouts.c, Simon Goldschmidt, 2018/01/02
- [lwip-devel] [bug #52748] the bug in timeouts.c, Simon Goldschmidt, 2018/01/03
- [lwip-devel] [bug #52748] the bug in timeouts.c, Dirk Ziegelmeier, 2018/01/05
- [lwip-devel] [bug #52748] the bug in timeouts.c, Dirk Ziegelmeier, 2018/01/05
- [lwip-devel] [bug #52748] the bug in timeouts.c, Douglas, 2018/01/05
- [lwip-devel] [bug #52748] the bug in timeouts.c, Dirk Ziegelmeier, 2018/01/05
- [lwip-devel] [bug #52748] the bug in timeouts.c, Simon Goldschmidt, 2018/01/05
- [lwip-devel] [bug #52748] the bug in timeouts.c, Simon Goldschmidt, 2018/01/05
- [lwip-devel] [bug #52748] the bug in timeouts.c,
Douglas <=
- [lwip-devel] [bug #52748] the bug in timeouts.c, Douglas, 2018/01/06
- [lwip-devel] [bug #52748] the bug in timeouts.c, Douglas, 2018/01/06
- [lwip-devel] [bug #52748] the bug in timeouts.c, Douglas, 2018/01/06
- [lwip-devel] [bug #52748] the bug in timeouts.c, Simon Goldschmidt, 2018/01/06
- [lwip-devel] [bug #52748] the bug in timeouts.c, Douglas, 2018/01/06
- [lwip-devel] [bug #52748] the bug in timeouts.c, Douglas, 2018/01/06
- [lwip-devel] [bug #52748] the bug in timeouts.c, Simon Goldschmidt, 2018/01/07
- [lwip-devel] [bug #52748] the bug in timeouts.c, Douglas, 2018/01/07
- [lwip-devel] [bug #52748] the bug in timeouts.c, Douglas, 2018/01/08
- [lwip-devel] [bug #52748] the bug in timeouts.c, Dirk Ziegelmeier, 2018/01/08