lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] how lwip know internet cable is unplug


From: Simon Goldschmidt
Subject: Re: [lwip-users] how lwip know internet cable is unplug
Date: Fri, 02 Sep 2011 14:15:37 +0200

address@hidden wrote:
> Thanks for the tip. set_link_up/down looks pretty safe to use from my 
> rx-thread (rx handled by a separate thread triggered by eth-interrupt). Is
> it the callback that need to be protected from threding issues?

Even if it is now, it is only so by chance and you shouldn't rely on it. Such 
mixed threading code is a no-go, you only risk producing bugs that are *very* 
hard to track down later. Just do it right now and be safe: it's just the lwIP 
principle that things like this are not protected from concurrent access by the 
lwIP core code.

Simon
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de



reply via email to

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