[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #40245] unix port minimal project has abundant timers
From: |
chrysn |
Subject: |
[lwip-devel] [bug #40245] unix port minimal project has abundant timers |
Date: |
Thu, 20 Feb 2014 23:37:38 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) Safari/538.1 Debian/unstable (3.10.1-1) Epiphany/3.10.1 |
Follow-up Comment #2, bug #40245 (project lwip):
how could i resist such a nice smiley? ;-)
the patches created for this are threefold:
* 0001-minimal-patch-to-fix-40245.patch just solves the issue at hand, but the
main loop stays relatively complex, and snmp application-level functionality
stays intermingled with the interrupt handling.
* 0002-further-simplification-on-the-minimal-unix-example.patch does away with
all custom timer handling, leaving the main loop at `while(1) {
mintapif_select(&netif); sys_check_timeouts(); }` -- it uses the select call
to sleep until the next timeout is due, but requires
* 0001-introduce-sys_timeouts_sleeptime.patch on lwip, which adds a NO_SYS=1
function sys_timeouts_sleeptime (which i'd need on microprocessors too
anyway).
the lwip patch can't do any harm for it's just a new function; the new version
of mintapif works well for me, but i have to admit i did not test it with
bigger applications and did not access snmp.
(if you are more familiar with snmp, you might know how strict the
requirements on uptime are; now that we don't need the regular wakeups any
more, they feel like more overhead than before ... but that's really out of
scope here.)
(file #30621, file #30622, file #30623)
_______________________________________________________
Additional Item Attachment:
File name: 0001-introduce-sys_timeouts_sleeptime.patch Size:1 KB
File name: 0002-further-simplification-on-the-minimal-unix-example.patch
Size:8 KB
File name: 0001-minimal-patch-to-fix-40245.patch Size:4 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?40245>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/