lwip-devel
[Top][All Lists]
Advanced

[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: Fri, 11 Oct 2013 16:33:18 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.32 (KHTML, like Gecko) Chromium/25.0.1349.2 Chrome/25.0.1349.2 Safari/537.32 Debian/unstable (3.8.2-3) Epiphany/3.8.2

URL:
  <http://savannah.nongnu.org/bugs/?40245>

                 Summary: unix port minimal project has abundant timers
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: chrysn
            Submitted on: Fri 11 Oct 2013 16:33:17 GMT
                Category: Contrib
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

the mininal project in the unix port of contrib
(lwip-contrib/ports/unix/proj/minimal/main.c) contains explicit timer handlers
for tcp, reassembly and etharp.

the relevant code sections are `timer_testclr_evt(TIMER_EVT_TCPTMR)`... in the
main loop and and `timer_set_interval...` in the setup part.

the setup part can be dropped without replacement, the part in the mainloop
replaced with a single sys_check_timeouts() call, which does all this since
a566f9d8, i assume.

not only will this make the main program more compact, it will also allow
ditching large parts of timer.[hc] (not all; without calling timer_init, no
signals fire up at all, but i figure that's only related to the sigalarm
initialization done there), bringing the example closer to a minimal example,
and better show the features of modern lwip.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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