[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] DNS thread-safe functions

From: Simon Goldschmidt
Subject: Re: [lwip-users] DNS thread-safe functions
Date: Tue, 4 Feb 2020 12:37:57 +0100

Ajay Bhargav wrote:
> [..]
> However, I am not sure if dns_setserver really needs to be protected so much
> as there is nothing much going on except copying of server in an array.

Please *don't* suggest things like this. You *need* protection:
a) there is no guarantee the code will stay like it is now
b) when switching to IPv6, the write is *not* atomic any more

Don't try to be smarter than the authors of the code or it might eat you in the
future ;-)


reply via email to

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