lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] LWIP_TCPIP_CORE_LOCKING option


From: Rastislav Uhrin
Subject: [lwip-users] LWIP_TCPIP_CORE_LOCKING option
Date: Mon, 21 Nov 2016 22:07:27 +0100

Hello lwip,

 

I am using lwIP 2.0 and I discovered LWIP_TCPIP_CORE_LOCKING option (I know it was there also before).

 

In my project with OS (and many threads), I have one OS thread say “App” in which I create “tcpip thread” and then in “App” thread I am using SOCKETS API.

 

Interrupt manages MAC and triggers through semaphore another process “RX” which prepares buffer and feeds it to “tcpip thread”.

 

Tcpip thread has highest priority

RX middle

App lowest

 

Question: Can I disable core locking, I mean:

#define LWIP_TCPIP_CORE_LOCKING       0

 

It works with and without locking. I don’t see any noticeable difference, but I don’t understand if the core should be locked in my case or no. Maybe it works because of my task priorities?

 

Thank you

 

rum


reply via email to

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