[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Multi-Threaded netconn API TCP application
From: |
Sylvain Rochet |
Subject: |
Re: [lwip-users] Multi-Threaded netconn API TCP application |
Date: |
Sun, 27 Sep 2015 17:00:40 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Darius,
On Thu, Sep 24, 2015 at 10:36:02AM +0300, Darius Babrauskas wrote:
>
> About systimeouts I found her(old info):
> http://lwip.wikia.com/wiki/Porting_for_an_OS
This is very outdated, sys_arch_timeouts() is not needed anymore circa
2011.
> Its my opinion, because some year ago my experience was not
> successful with linux port (works but unstable) .
>
> In current linux port I have a sighting in function "cond_wait"
> which using gettimeofday:
> We have depends to system time adjustments (ntp, user ...)
> Maybe better solution use CLOCK_MONOTONIC...
You are right, CLOCK_REALTIME (the gettimeofday() timing source) is not
a nice timing source to get elapsed time, the port is now using
CLOCK_MONOTONIC. However I doubt that having used CLOCK_REALTIME instead
of CLOCK_MONOTONIC was enough to qualify the whole port as being
miswritten.
Why didn't you propose a patch when you noticed that several years ago ?
Sylvain
signature.asc
Description: Digital signature
- Re: [lwip-users] Multi-Threaded netconn API TCP application, (continued)