vincent cui <[email protected]> wrote:
> I had port latest lwip1.4.0 to my system, it works well . but I found some
> additional api about mutex are defined in 1.4.0
> 
> I want to know that are they necessary ?

No, as it says in sys.h: "Define LWIP_COMPAT_MUTEX if the port has no mutexes 
and binary semaphores should be used instead". The only disadvantage of using 
binary semaphores (in this case, the sys_mutex_* functions are defined to their 
sys_sem_* substitute) is that you can get priority inversion (mutextes are only 
used for communication between API tasks using netconn or sockets and the 
tcpip_thread).

Simon
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                          
        
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to