|
From: | address@hidden |
Subject: | Re: [lwip-users] Multi threaded TCP model |
Date: | Fri, 18 Mar 2016 19:56:35 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |