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

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to