[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] mutex API in system layer is necessary ?
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] mutex API in system layer is necessary ? |
Date: |
Tue, 08 May 2012 07:20:53 +0200 |
vincent cui <address@hidden> 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
Re: [lwip-users] mutex API in system layer is necessary ?, FreeRTOS Info, 2012/05/08
Re: [lwip-users] mutex API in system layer is necessary ?, Mason, 2012/05/10