[Top][All Lists]

[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:


  Message sent via/by Savannah

reply via email to

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