lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Threading Question using LWIP with TM4C1294NCPDT


From: address@hidden
Subject: Re: [lwip-users] Threading Question using LWIP with TM4C1294NCPDT
Date: Mon, 22 Oct 2018 20:16:00 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 18.10.2018 22:27, Terence Darwen wrote:
I'm using LWIP for TCP/IP communication on a TI Tiva microcontroller (a TM4C1294NCPDT).  TI includes LWIP 1.4.1 in its TivaWare package.  I've read that LWIP is not threadsafe, however, I'm not sure exactly what that means in my context where I'm using it with no operating system on the single core TI Tiva microcontroller.
[..]
Can anyone please clarify?  Thank you.

Honestly, I don't know the setup of this TI port. However, I can clarify on the "not threadsafe" thing:

lwIP does *not* include locking schemes to protect against being called from multiple threads *or* from a thread/main-loop and/or one or more interrupt levels at the same time. There is some protection (a.k.a. "lightweight prot"), but that mainly covers pool allocation.

So if this port is written in a way that calls to lwIP don't run from main loop and from interrupt at the same time - and only one interrupt runs at a time and isn't interrupted by another interrupt while using lwIP - you should be safe.

I can't tell you if it is that way for your port, though.


Simon



reply via email to

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