|
From: | Pîrvu Mihai |
Subject: | Re: [lwip-users] Multi threaded TCP model |
Date: | Fri, 18 Mar 2016 21:13:11 +0200 |
Pîrvu Mihai wrote:
I've read that different threads cannot call the same socket/netconn session at the same time, so I guess this is where my problem lays.
You can use the fairly new option LWIP_NETCONN_FULLDUPLEX set to 1, which in combination with thread-local semaphores (LWIP_NETCONN_SEM_PER_THREAD==1) to write from one thread while writing from a 2nd thread. Thread-local semaphores might not be easy to implement, though, depending on your port.
Simon
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
[Prev in Thread] | Current Thread | [Next in Thread] |